fix release building (#4)

This commit is contained in:
T. von Dein
2025-11-23 18:23:49 +01:00
parent b836a4e75d
commit 3d0ec6bfbc
2 changed files with 8 additions and 6 deletions

View File

@@ -50,5 +50,5 @@ fi
for file in "$@"; do for file in "$@"; do
https --ignore-stdin --check-status -A bearer -a "$DEPLOY_TOKEN" -f POST \ https --ignore-stdin --check-status -A bearer -a "$DEPLOY_TOKEN" -f POST \
"https://codeberg.org/api/v1/repos/${CI_REPO_OWNER}/${CI_REPO_NAME}/releases/$ID/assets" \ "https://codeberg.org/api/v1/repos/${CI_REPO_OWNER}/${CI_REPO_NAME}/releases/$ID/assets" \
"name=${file}-${version}" "attachment@${file}" "name=${file}" "attachment@${file}"
done done

View File

@@ -6,24 +6,26 @@ labels:
steps: steps:
compile: compile:
when: when:
event: [tag] event: [tag,manual]
image: alpine:latest image: alpine:latest
commands: commands:
- apk update - apk update
- apk add --no-cache bash build-base words-en gdb perl pcre2-static pcre2-dev gdbm gdbm-dev pkgconfig meson ninja - apk add --no-cache bash build-base words-en gdb perl pcre2-static pcre2-dev gdbm gdbm-dev pkgconfig meson ninja git
- meson setup --reconfigure --prefer-static -Dcpp_link_args="-static" --buildtype=release build - meson setup --reconfigure --prefer-static -Dcpp_link_args="-static" --buildtype=release build
- ninja -C build - ninja -C build
- meson dist -C build --formats xztar,gztar,zip
- file build/dbtool - file build/dbtool
- mv build/dbtool dbtool-linux-amd64 - mv build/dbtool dbtool-linux-amd64-$CI_COMMIT_TAG
- mv build/meson-dist/* .
release: release:
image: alpine:latest image: alpine:latest
when: when:
event: [tag] event: [tag,manual]
environment: environment:
DEPLOY_TOKEN: DEPLOY_TOKEN:
from_secret: DEPLOY_TOKEN from_secret: DEPLOY_TOKEN
commands: commands:
- apk update - apk update
- apk add --no-cache bash httpie jq git - apk add --no-cache bash httpie jq git
- .woodpecker/release.sh dbtool-linux-amd64 - .woodpecker/release.sh dbtool-*