Skip to content

Commit 26d7e3f

Browse files
authored
Only run publish steps on tags
1 parent 99419ff commit 26d7e3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ jobs:
108108
publish:
109109
runs-on: ubuntu-latest
110110
needs: [lint, test, package-sdist, package-wheel]
111+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
111112
environment: publish
112113
permissions:
113114
# Required by Trusted Publishing
@@ -131,5 +132,4 @@ jobs:
131132
pattern: wheels-ubuntu-latest-*
132133
path: dist/
133134
- name: Publish to PyPI
134-
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
135135
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)