Aktualisierung der release.yml für flexible Tag-Behandlung
All checks were successful
Release Plugin / release (push) Successful in 4s

This commit is contained in:
Michael Otto
2026-03-13 09:28:46 +01:00
parent 8a8dfc8187
commit 74d8eb468d

View File

@@ -4,7 +4,7 @@ run-name: "Release | ${{ github.ref_name }}"
on: on:
push: push:
tags: tags:
- 'v*' - '*'
jobs: jobs:
release: release:
@@ -40,25 +40,27 @@ jobs:
id: releaseinfo id: releaseinfo
run: | run: |
TAG="${{ github.ref_name }}" TAG="${{ github.ref_name }}"
VERSION="${TAG#v}"
case "$TAG" in if [[ "$TAG" =~ ^t ]]; then
*-unstable*) VERSION="${TAG#t}"
CHANNEL="unstable" TAG="v${VERSION}-testing"
DRAFT="false"
PRERELEASE="true"
;;
*-testing*)
CHANNEL="testing" CHANNEL="testing"
DRAFT="false" DRAFT="false"
PRERELEASE="true" PRERELEASE="true"
;; elif [[ "$TAG" =~ ^u ]]; then
*) VERSION="${TAG#u}"
CHANNEL="stable" TAG="v${VERSION}-unstable"
CHANNEL="unstable"
DRAFT="false" DRAFT="false"
PRERELEASE="false" PRERELEASE="true"
;; else
esac # Falscheingaben als unstable behandeln
VERSION="${TAG#v}"
TAG="v${VERSION}-unstable"
CHANNEL="unstable"
DRAFT="false"
PRERELEASE="true"
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "channel=$CHANNEL" >> $GITHUB_OUTPUT echo "channel=$CHANNEL" >> $GITHUB_OUTPUT