Skip to content

Commit c33cba3

Browse files
committed
only run release workflow on tag creation
1 parent 45c01c1 commit c33cba3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515

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

2021
steps:
@@ -37,7 +38,6 @@ jobs:
3738
publish-to-pypi:
3839
name: >-
3940
Publish Python 🐍 distribution 📦 to PyPI
40-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
4141
needs:
4242
- build
4343
runs-on: ubuntu-latest
@@ -100,7 +100,6 @@ jobs:
100100
101101
publish-to-testpypi:
102102
name: Publish Python 🐍 distribution 📦 to TestPyPI
103-
if: startsWith(github.ref, 'refs/tags/') # only publish to PyPI on tag pushes
104103
needs:
105104
- build
106105
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)