Skip to content

Commit 7444e9e

Browse files
committed
only publish if tags are pushed
1 parent 181f87f commit 7444e9e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
- 'v*'
1212
schedule:
1313
- cron: "40 4 * * 1" # every monday at 04:40 UTC
14-
workflow_dispatch:
1514

1615
jobs:
1716
build_publish_pypi:
@@ -43,5 +42,5 @@ jobs:
4342
python -m twine check --strict ./dist/*
4443
4544
- name: Publish package to PyPI
46-
if: ${{ github.event_name != 'schedule' }}
45+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags') }}
4746
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)