Skip to content

Make PyPI publish job idempotent on reruns by skipping existing distributions#278

Closed
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-publish-to-pypi-job
Closed

Make PyPI publish job idempotent on reruns by skipping existing distributions#278
Copilot wants to merge 1 commit into
mainfrom
copilot/fix-publish-to-pypi-job

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown

The Publish to PyPI Actions job failed because reruns attempted to upload distribution filenames that were already published, and PyPI rejects file-name reuse (400 File already exists). This PR updates the release workflow so publish can safely proceed when artifacts already exist.

  • Workflow: PyPI publish behavior

    • Updated .github/workflows/release.yaml in the publish job to enable existing-file tolerance in pypa/gh-action-pypi-publish.
  • Failure mode addressed

    • Handles rerun/retry scenarios where the same wheel/sdist has already been uploaded for the same version.
- name: Publish to PyPI
  uses: pypa/gh-action-pypi-publish@...
  with:
    packages-dir: dist/
    verbose: true
    skip-existing: true

Copilot AI changed the title [WIP] Fix failing GitHub Actions job Publish to PyPI Make PyPI publish job idempotent on reruns by skipping existing distributions Jun 22, 2026
Copilot AI requested a review from mcllerena June 22, 2026 19:21
@mcllerena mcllerena marked this pull request as ready for review June 22, 2026 19:22
Copilot AI review requested due to automatic review settings June 22, 2026 19:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mcllerena mcllerena closed this Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants