Skip to content

Commit 6aaa50c

Browse files
ci: add skip-existing flag to PyPI workflow to avoid duplicate version publish failures
1 parent 280e278 commit 6aaa50c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ jobs:
7171
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
7272
with:
7373
repository-url: https://test.pypi.org/legacy/
74+
skip-existing: true
7475

7576
# ─────────────────────────────────────────────────────────────────
7677
# Publish to PyPI (requires manual approval via GitHub Environment)
@@ -93,3 +94,6 @@ jobs:
9394

9495
- name: Publish to PyPI
9596
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # release/v1
97+
with:
98+
skip-existing: true
99+

0 commit comments

Comments
 (0)