Add zip to release
This commit is contained in:
parent
e59968444e
commit
06532ba81f
1 changed files with 10 additions and 9 deletions
19
.drone.yml
19
.drone.yml
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue