Skip to content

Commit 867a4a2

Browse files
committed
Fix TestPyPI publish: skip-existing for duplicate version uploads
Version 0.0.1 already exists on TestPyPI from the initial push. Subsequent pushes to main that touch sdk/python/ trigger the publish workflow, which fails with 400 Bad Request because you can't re-upload the same version. skip-existing: true handles this gracefully.
1 parent 1fef809 commit 867a4a2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/publish-sdk.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
uses: pypa/gh-action-pypi-publish@release/v1
5555
with:
5656
repository-url: https://test.pypi.org/legacy/
57+
skip-existing: true
5758

5859
publish-pypi:
5960
name: Publish to PyPI

0 commit comments

Comments
 (0)