From 0056d61e7f6a3e15a226abbc6881cc2c0e740621 Mon Sep 17 00:00:00 2001 From: txoof-bot <337660340+txoof-bot@users.noreply.github.com> Date: Tue, 10 Nov 2026 21:36:22 +0100 Subject: [PATCH] Release workflow: a full release is no longer marked as a pre-release (#384) Co-Authored-By: Claude Opus 5.5 --- .github/workflows/release.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07f5b02..775d257 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -41,8 +41,9 @@ jobs: GH_TOKEN: ${{ github.token }} TAG: ${{ github.ref_name }} run: | - # A version with a letter (a, b, rc) is a test release. + # A version with a letter (a, b, rc) is a test release. ${TAG#v} drops the + # tag's leading "v", which is a letter too. pre=() - if [[ $TAG =~ [a-z] ]]; then pre=(--prerelease); fi + if [[ ${TAG#v} =~ [a-z] ]]; then pre=(--prerelease); fi gh release create "$TAG" --repo "$GITHUB_REPOSITORY" --verify-tag \ --title "PaperPi ${TAG#v}" --generate-notes "${pre[@]}"