Skip to content

Commit 70304a1

Browse files
committed
Fix failing testpypi uploads
1 parent 579a54b commit 70304a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,11 @@ jobs:
121121
122122
publish-to-testpypi:
123123
name: Publish to TestPyPI
124+
if: "!startsWith(github.ref, 'refs/tags/')" # Skip on tag pushes (those go to real PyPI)
124125
needs:
125126
- build
126127
runs-on: ubuntu-latest
128+
continue-on-error: true # Don't fail the workflow if TestPyPI upload fails (e.g., version exists)
127129

128130
environment:
129131
name: testpypi
@@ -142,3 +144,4 @@ jobs:
142144
uses: pypa/gh-action-pypi-publish@release/v1
143145
with:
144146
repository-url: https://test.pypi.org/legacy/
147+
skip-existing: true # Skip if version already exists

0 commit comments

Comments
 (0)