Skip to content

Commit 44166f2

Browse files
committed
ci: skip existing versions on PyPI republish so a crashed release rerun converges
1 parent 577cf4d commit 44166f2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ jobs:
8686
- name: Publish to PyPI
8787
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'
8888
uses: pypa/gh-action-pypi-publish@release/v1
89+
with:
90+
# a crashed run can publish and then fail before the git push lands, leaving the registry ahead of the repo; skip-existing makes the rerun converge instead of dying on the duplicate upload
91+
skip-existing: true
8992

9093
- name: Commit, tag, push
9194
if: steps.diff.outputs.changed == 'true' || github.event_name == 'workflow_dispatch'

0 commit comments

Comments
 (0)