From b2673bc7f6021809ffcdf94cb27bbe25478a8720 Mon Sep 17 00:00:00 2001 From: Romeo Kienzler <5694071+romeokienzler@users.noreply.github.com> Date: Fri, 12 Jun 2026 11:41:07 +0200 Subject: [PATCH] Update release.yaml Signed-off-by: Romeo Kienzler <5694071+romeokienzler@users.noreply.github.com> --- .github/workflows/release.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d49eecb..6b4820d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -25,9 +25,9 @@ jobs: echo "Tag detected: $TAG" - # Enforce strict semver: vX.Y.Z where X,Y,Z are integers - if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then - echo "Invalid tag format. Expected vX.Y.Z" + # Enforce strict format: vX.Y.Z or vX.Y.ZrcN where X,Y,Z,N are integers + if [[ ! "$TAG" =~ ^v[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+)?$ ]]; then + echo "Invalid tag format. Expected vX.Y.Z or vX.Y.ZrcN" exit 1 fi @@ -64,4 +64,4 @@ jobs: TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | python -m twine check dist/* - python -m twine upload dist/* --non-interactive \ No newline at end of file + python -m twine upload dist/* --non-interactive