.gitea/workflows/release.yml aktualisiert
All checks were successful
release-tag / release-image (push) Successful in 2m5s
All checks were successful
release-tag / release-image (push) Successful in 2m5s
This commit is contained in:
@@ -142,20 +142,16 @@ jobs:
|
|||||||
uses: actions/download-artifact@v3
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./dist
|
path: ./dist
|
||||||
|
|
||||||
- name: Publish release metadata to Version Agent
|
- name: Publish release metadata to Version Agent
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [[ -z "${AGENT_URL:-}" || -z "${AGENT_TOKEN:-}" ]]; then
|
if [[ -z "${AGENT_URL:-}" || -z "${AGENT_TOKEN:-}" ]]; then
|
||||||
echo "Missing AGENT_URL or AGENT_TOKEN" >&2; exit 1
|
echo "Missing AGENT_URL or AGENT_TOKEN" >&2; exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
VERSION="${TAG#v}" # 12.3.1[-rc.1|-beta.1]
|
VERSION="${TAG#v}" # 12.3.1[-rc.1|-beta.1]
|
||||||
MAJOR="${VERSION%%.*}" # 12
|
MAJOR="${VERSION%%.*}" # 12
|
||||||
BRANCH="${MAJOR}.x" # 12.x
|
BRANCH="${MAJOR}.x" # 12.x
|
||||||
|
|
||||||
CHANNEL="stable"
|
CHANNEL="stable"
|
||||||
[[ "$VERSION" == *"-rc"* ]] && CHANNEL="rc"
|
[[ "$VERSION" == *"-rc"* ]] && CHANNEL="rc"
|
||||||
[[ "$VERSION" == *"-beta"* ]] && CHANNEL="beta"
|
[[ "$VERSION" == *"-beta"* ]] && CHANNEL="beta"
|
||||||
|
|||||||
Reference in New Issue
Block a user