fix release pipeline
This commit is contained in:
@@ -6,19 +6,13 @@ steps:
|
||||
image: golang:1.26-alpine3.23
|
||||
commands:
|
||||
- go mod download
|
||||
- CGO_ENABLED=0 go build -ldflags="-s -w" -trimpath -o qbittorrent-sentinel
|
||||
- ci/build.sh
|
||||
|
||||
publish:
|
||||
image: alpine:3.23
|
||||
commands:
|
||||
- apk add --no-cache curl
|
||||
- |
|
||||
echo "Uploading qbittorrent-sentinel..."
|
||||
curl -sS -X POST \
|
||||
-H "Authorization: token $GITEA_RELEASE_TOKEN" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--data-binary "@qbittorrent-sentinel" \
|
||||
"https://git.sbstp.ca/api/v1/repos/${CI_REPO}/releases/tags/${CI_COMMIT_TAG}/assets?name=qbittorrent-sentinel"
|
||||
- apk add --no-cache node
|
||||
- node ci/release.js .build/qbittorrent-sentinel
|
||||
environment:
|
||||
GITEA_RELEASE_TOKEN:
|
||||
from_secret: gitea_release_token
|
||||
|
||||
Reference in New Issue
Block a user