Skip to content

Commit

Permalink
run publish jobs only when tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan committed Jul 26, 2024
1 parent 8cdce10 commit 02b9e05
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
build:
name: Build distribution 📦
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -135,6 +136,7 @@ jobs:
github-release:
name: Sign the Python 🐍 distribution 📦 with Sigstore and upload them to GitHub Release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs:
# - publish-test
- publish
Expand Down

0 comments on commit 02b9e05

Please sign in to comment.