Skip to content

Commit 7f8ddec

Browse files
claudespoorcc
authored andcommitted
ci: make PyPI publish step idempotent on re-runs
Add skip-existing: true to the production PyPI publish step in the deploy job, matching the existing testpypi job. Without this, if the SBOM download/upload steps after the publish step fail, a re-run would be blocked because PyPI rejects re-uploading an already-published version. https://claude.ai/code/session_01VPK44jamDeLp4Tcy916XDT
1 parent c2dad30 commit 7f8ddec

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/python-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ jobs:
100100
path: dist/
101101
- name: Publish distribution 📦 to PyPI
102102
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1
103+
with:
104+
skip-existing: true
103105
- name: Download SBOM
104106
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v5
105107
with:

0 commit comments

Comments
 (0)