Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -64,4 +64,4 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m twine check dist/*
python -m twine upload dist/* --non-interactive
python -m twine upload dist/* --non-interactive
Loading