mirror of
https://codeberg.org/scip/dbtool.git
synced 2025-12-16 19:00:58 +01:00
add git, use git tag
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -15,7 +15,8 @@ steps:
|
|||||||
- ninja -C build
|
- ninja -C build
|
||||||
- meson dist -C build --formats xztar,gztar,zip
|
- 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
|
||||||
@@ -27,4 +28,4 @@ steps:
|
|||||||
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 build/meson-dist/*
|
- .woodpecker/release.sh dbtool-*
|
||||||
|
|||||||
Reference in New Issue
Block a user