Skip to content

Commit

Permalink
only run tag jobs/steps on version tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyeRussell committed Apr 2, 2024
1 parent 2484c47 commit 9701f89
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ jobs:
with:
name: dist
path: dist/*
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/v')

release-pypi:
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/v')
name: Publish PyPI release
runs-on: ubuntu-latest
needs: test-and-build
Expand All @@ -58,7 +58,7 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1

release-github:
if: startsWith(github.ref, 'refs/tags/')
if: startsWith(github.ref, 'refs/tags/v')
name: Publish GitHub release
runs-on: ubuntu-latest
needs: test-and-build
Expand Down

0 comments on commit 9701f89

Please sign in to comment.