diff options
Diffstat (limited to '')
-rw-r--r-- | .github/workflows/python.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 1b5228d..6ad222c 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -39,7 +39,8 @@ jobs: publish: name: Publish to PyPI needs: build-and-test - if: ${{ github.event_name == 'tag' && startsWith(github.ref, 'refs/tags') }} + # Only run on this on proper semver (vX.Y.Z) tags + if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }} runs-on: ubuntu-latest permissions: id-token: write |