We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 579a54b commit 70304a1Copy full SHA for 70304a1
.github/workflows/main.yml
@@ -121,9 +121,11 @@ jobs:
121
122
publish-to-testpypi:
123
name: Publish to TestPyPI
124
+ if: "!startsWith(github.ref, 'refs/tags/')" # Skip on tag pushes (those go to real PyPI)
125
needs:
126
- build
127
runs-on: ubuntu-latest
128
+ continue-on-error: true # Don't fail the workflow if TestPyPI upload fails (e.g., version exists)
129
130
environment:
131
name: testpypi
@@ -142,3 +144,4 @@ jobs:
142
144
uses: pypa/gh-action-pypi-publish@release/v1
143
145
with:
146
repository-url: https://test.pypi.org/legacy/
147
+ skip-existing: true # Skip if version already exists
0 commit comments