Skip to content

Commit 5279df9

Browse files
committed
Publish only on pushed release tags
1 parent c2fd7aa commit 5279df9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/workflows/pypi-publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Repository name: diffraction-lib
5656
# Workflow name: pypi-publish.yml
5757
- name: Publish to PyPI
58-
if: startsWith(github.ref, 'refs/tags/v')
58+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
5959
uses: pypa/gh-action-pypi-publish@release/v1
6060
with:
6161
packages-dir: 'dist'

0 commit comments

Comments
 (0)