Skip to content

Commit

Permalink
only run release workflow on tag creation
Browse files Browse the repository at this point in the history
  • Loading branch information
bckohan committed Oct 9, 2024
1 parent 45c01c1 commit c33cba3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:

build:
name: Build distribution 📦
if: startsWith(github.ref, 'refs/tags/') # only publish on tag pushes
runs-on: ubuntu-latest

steps:
Expand All @@ -37,7 +38,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 Expand Up @@ -100,7 +100,6 @@ jobs:
publish-to-testpypi:
name: Publish Python 🐍 distribution 📦 to TestPyPI
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 c33cba3

Please sign in to comment.