Add release build for tagged versions
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing

This commit is contained in:
Armin Friedl 2020-02-22 20:33:54 +01:00
parent 8249a2f017
commit a04a654055
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8

View file

@ -13,3 +13,42 @@ trigger:
event:
exclude:
- tag
---
kind: pipeline
type: docker
name: release
steps:
- name: build
image: arminfriedl/xwim-build
commands:
- meson --buildtype release build
- ninja -C build
- mkdir xwim-${DRONE_TAG}-x86_64-linux
- mv build/src/xwim xwim-${DRONE_TAG}-x86_64-linux
- name: package
image: arminfriedl/xwim-build
commands:
- tar cjf xwim-${DRONE_TAG}-x86_64-linux.tar.bz2 xwim-${DRONE_TAG}-x86_64-linux/xwim
- tar czf xwim-${DRONE_TAG}-x86_64-linux.tar.gz xwim-${DRONE_TAG}-x86_64-linux/xwim
- name: publish
image: plugins/gitea-release
settings:
base_url: https://git.friedl.net
api_key:
from_secret: gitea_token
files:
- xwim-${DRONE_TAG}-x86_64-linux.tar.bz2
- xwim-${DRONE_TAG}-x86_64-linux.tar.gz
title: xwim ${DRONE_TAG}
note: CHANGELOG.md
checksum:
- md5
- sha256
trigger:
event:
- tag