Add zip to release

This commit is contained in:
Armin Friedl 2020-02-23 15:42:22 +01:00
parent e59968444e
commit 06532ba81f
Signed by: armin
GPG key ID: 48C726EEE7FBCBC8

View file

@ -20,19 +20,20 @@ type: docker
name: release name: release
steps: steps:
- name: build - name: build-musl
image: arminfriedl/xwim-build image: arminfriedl/xwim-build
commands: commands:
- meson --buildtype release build - LDFLAGS="-static-libstdc++ -static-libgcc" meson --buildtype=release build
- ninja -C build - ninja -C build
- mkdir xwim-${DRONE_TAG}-x86_64-linux - mkdir xwim-${DRONE_TAG}-x86_64-musl-linux
- mv build/src/xwim xwim-${DRONE_TAG}-x86_64-linux - mv build/src/xwim xwim-${DRONE_TAG}-x86_64-musl-linux
- name: package - name: package
image: arminfriedl/xwim-build image: arminfriedl/xwim-build
commands: commands:
- tar cjf xwim-${DRONE_TAG}-x86_64-linux.tar.bz2 xwim-${DRONE_TAG}-x86_64-linux/xwim - tar cjf xwim-${DRONE_TAG}-x86_64-musl-linux.tar.bz2 xwim-${DRONE_TAG}-x86_64-musl-linux/xwim
- tar czf xwim-${DRONE_TAG}-x86_64-linux.tar.gz xwim-${DRONE_TAG}-x86_64-linux/xwim - tar czf xwim-${DRONE_TAG}-x86_64-musl-linux.tar.gz xwim-${DRONE_TAG}-x86_64-musl-linux/xwim
- zip -r xwim-${DRONE_TAG}-x86_64-musl-linux.zip xwim-${DRONE_TAG}-x86_64-musl-linux
- name: publish - name: publish
image: plugins/gitea-release image: plugins/gitea-release
@ -41,10 +42,10 @@ steps:
api_key: api_key:
from_secret: gitea_token from_secret: gitea_token
files: files:
- xwim-${DRONE_TAG}-x86_64-linux.tar.bz2 - xwim-${DRONE_TAG}-x86_64-musl-linux.tar.bz2
- xwim-${DRONE_TAG}-x86_64-linux.tar.gz - xwim-${DRONE_TAG}-x86_64-musl-linux.tar.gz
- xwim-${DRONE_TAG}-x86_64-musl-linux.zip
title: xwim ${DRONE_TAG} title: xwim ${DRONE_TAG}
note: CHANGELOG.md
checksum: checksum:
- md5 - md5
- sha256 - sha256