Skip to content

Commit 140647a

Browse files
committed
Put gates around the right job
1 parent 817fad0 commit 140647a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636

3737
publish-to-pypi:
3838
name: Publish to PyPI
39+
if: github.ref == 'refs/heads/main' && startsWith(github.ref, 'refs/tags/v')
3940
runs-on: ubuntu-latest
4041
environment:
4142
name: PyPi
@@ -52,7 +53,6 @@ jobs:
5253

5354
install-library-from-pypi:
5455
name: Install from PyPI
55-
if: startsWith(github.ref, 'refs/tags/v')
5656
needs: [publish-to-pypi]
5757
runs-on: ubuntu-latest
5858
steps:

0 commit comments

Comments
 (0)