Skip to content

Commit 43de365

Browse files
Merge pull request #5 from archettialberto/tag-fix
Update GitHub Actions workflow to publish to PyPI on tag pushes only
2 parents 5de8ca6 + 076a6c7 commit 43de365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test_build_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
publish-to-pypi:
8989
name: >-
9090
Publish to PyPI
91-
if: startsWith(github.ref, 'refs/tags/') && github.ref_name == 'main' # only publish to PyPI on tag pushes and if the branch is main
91+
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
9292
needs:
9393
- build
9494
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)