Skip to content

Commit

Permalink
Only run publish workflow when GitHub releases are created
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormheg committed Oct 17, 2023
1 parent b549402 commit 8bc4e1a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
name: Publish to PyPI
on:
push:
tags:
# Only run for tags **not** ending with `.devN`
# https://peps.python.org/pep-0440/#summary-of-permitted-suffixes-and-relative-ordering
- '*'
- '!*\.dev\d+'
release:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#release
types: [released]
jobs:
test:
uses: ./.github/workflows/test.yml
Expand Down

0 comments on commit 8bc4e1a

Please sign in to comment.