Skip to content

Commit 4ca711d

Browse files
committed
Only publish on tags
TestPyPI is failing every time - I've modified this so it will only attempt to publish if it's tagged `testpypi-v<whatever>` to get rid of these errors.
1 parent 7cc57f0 commit 4ca711d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ jobs:
3333

3434
publish-to-testpypi:
3535
name: Publish Python 🐍 distribution 📦 to TestPyPI
36+
if: startsWith(github.ref, 'refs/tags/testpypi-v') # only publish to PyPI on tag pushes
3637
needs:
3738
- build
3839
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)