Skip to content

Commit

Permalink
Only run publish on releases
Browse files Browse the repository at this point in the history
  • Loading branch information
christiansandberg committed Aug 2, 2024
1 parent 0c8cb6a commit 9e57478
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Publish Python 🐍 distribution 📦 to PyPI

on: push
on:
release:
types: [published]

jobs:
build:
Expand Down Expand Up @@ -30,7 +32,6 @@ jobs:
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
needs:
- build
runs-on: ubuntu-latest
Expand Down

0 comments on commit 9e57478

Please sign in to comment.