Skip to content

Commit db441bd

Browse files
authored
run if master OR tag (#1160)
1 parent c2ff859 commit db441bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/publish-pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
repository_url: https://test.pypi.org/legacy/
3535

3636
- name: Publish distribution 📦 to PyPI
37-
if: ${{ github.ref == 'refs/heads/master' }}
37+
if: ${{ github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/v') }}
3838
uses: pypa/gh-action-pypi-publish@release/v1 # license BSD-2
3939
with:
4040
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)