bugfix
This commit is contained in:
@@ -131,11 +131,9 @@ jobs:
|
||||
PRODUCT: release-agent
|
||||
AGENT_URL: ${{ secrets.AGENT_URL }}
|
||||
AGENT_TOKEN: ${{ secrets.AGENT_TOKEN }}
|
||||
|
||||
# Funktioniert in GitHub und Gitea (Actions) weitgehend gleich:
|
||||
SERVER_URL: ${{ github.server_url }} # z.B. https://github.com oder https://gitea.example.com
|
||||
REPOSITORY: ${{ github.repository }} # owner/repo
|
||||
TAG: ${{ github.ref_name }} # vX.Y.Z
|
||||
SERVER_URL: ${{ github.server_url }}
|
||||
REPOSITORY: ${{ github.repository }}
|
||||
TAG: ${{ github.ref_name }}
|
||||
|
||||
steps:
|
||||
- name: Download artifacts
|
||||
@@ -147,19 +145,17 @@ jobs:
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
if [[ -z "${AGENT_URL:-}" || -z "${AGENT_TOKEN:-}" ]]; then
|
||||
echo "Missing AGENT_URL or AGENT_TOKEN" >&2; exit 1
|
||||
fi
|
||||
|
||||
VERSION="${TAG#v}" # 12.3.1[-rc.1|-beta.1]
|
||||
MAJOR="${VERSION%%.*}" # 12
|
||||
BRANCH="${MAJOR}.x" # 12.x
|
||||
VERSION="${TAG#v}"
|
||||
MAJOR="${VERSION%%.*}"
|
||||
BRANCH="${MAJOR}.x"
|
||||
|
||||
CHANNEL="stable"
|
||||
[[ "$VERSION" == *"-rc"* ]] && CHANNEL="rc"
|
||||
[[ "$VERSION" == *"-beta"* ]] && CHANNEL="beta"
|
||||
# Optional: Nightly-Channel bei Non-Tag-Builds (separater Job, siehe unten)
|
||||
|
||||
RELEASED_AT="$(date -u +"%Y-%m-%dT%H:%M:%SZ")"
|
||||
NOTES_URL="${SERVER_URL}/${REPOSITORY}/releases/tag/${TAG}"
|
||||
@@ -202,14 +198,8 @@ jobs:
|
||||
-d @payload.json "${AGENT_URL}/v1/publish"
|
||||
}
|
||||
|
||||
|
||||
shopt -s nullglob
|
||||
|
||||
# linux/amd64
|
||||
for f in dist/**/${PRODUCT}-linux-amd64.tar.gz; do publish linux amd64 "$f"; done
|
||||
# linux/arm64
|
||||
for f in dist/**/${PRODUCT}-linux-arm64.tar.gz; do publish linux arm64 "$f"; done
|
||||
# linux/armv7
|
||||
for f in dist/**/${PRODUCT}-linux-armv7.tar.gz; do publish linux armv7 "$f"; done
|
||||
# windows/amd64
|
||||
for f in dist/**/${PRODUCT}-windows-amd64.zip; do publish windows amd64 "$f"; done
|
||||
Reference in New Issue
Block a user