Skip to content

Commit

Permalink
only publish if tags are pushed
Browse files Browse the repository at this point in the history
  • Loading branch information
gboeing committed Dec 10, 2024
1 parent 181f87f commit 7444e9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build-publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ on:
- 'v*'
schedule:
- cron: "40 4 * * 1" # every monday at 04:40 UTC
workflow_dispatch:

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

0 comments on commit 7444e9e

Please sign in to comment.