Skip to content

Commit

Permalink
Update publish_workflow.yml to include tag pushes for PyPI publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
EmileDeBruyn committed Apr 25, 2024
1 parent 006f3d0 commit cc1131f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on:
push:
branches:
- master

tags:
- '*'
jobs:
build:
name: Build distribution 📦
Expand Down Expand Up @@ -35,7 +36,7 @@ jobs:
publish-to-pypi:
name: >-
Publish Python 🐍 distribution 📦 to PyPI
# if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
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 cc1131f

Please sign in to comment.