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