Skip to content

Commit

Permalink
Only trigger publish on release.published event (#572)
Browse files Browse the repository at this point in the history
We noticed that making a release triggered
multiple different release events: created, prereleased, published. 
Here we tweak the workflow file so that the workflow only runs
for the release.publish event, per documentation:
https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
  • Loading branch information
danielhollas committed Mar 5, 2024
1 parent cd2face commit 8190dc0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@ on:
pull_request:
branches:
# Commits pushed to release/ branches are published on Test PyPI if they
# have a new version number.
# have a new version number. This allows the maintainer to check the release
# before it is pushed to the actual PyPI index.
- release/**
release:
types: [published]

jobs:

Expand Down

0 comments on commit 8190dc0

Please sign in to comment.