Skip to content

Commit f451ab0

Browse files
committed
Add if statement back into publishing workflow
1 parent 694395d commit f451ab0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish_pypi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
publish-to-pypi:
3535
name: >-
3636
Publish Python distribution to PyPI
37+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
3738
needs:
3839
- build
3940
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)