diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 769cfd6..8e74cbc 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -41,22 +41,24 @@ jobs: run: | TAG="${{ github.ref_name }}" - if [[ "$TAG" =~ ^t ]]; then + if [[ "$TAG" =~ ^v ]]; then + VERSION="${TAG#v}" + CHANNEL="stable" + DRAFT="false" + PRERELEASE="false" + elif [[ "$TAG" =~ ^t ]]; then VERSION="${TAG#t}" - TAG="v${VERSION}-testing" CHANNEL="testing" DRAFT="false" PRERELEASE="true" elif [[ "$TAG" =~ ^u ]]; then VERSION="${TAG#u}" - TAG="v${VERSION}-unstable" CHANNEL="unstable" DRAFT="false" PRERELEASE="true" else - # Falscheingaben als unstable behandeln - VERSION="${TAG#v}" - TAG="v${VERSION}-unstable" + # Fallback für andere Prefixe, z.B. x26.3.1 -> 26.3.1-unstable + VERSION="${TAG#?}" CHANNEL="unstable" DRAFT="false" PRERELEASE="true"