Skip to content

Publish once per release - #69

Open
rogeriojorge wants to merge 1 commit into
mainfrom
fix/single-publish-trigger
Open

rogeriojorge wants to merge 1 commit into
mainfrom
fix/single-publish-trigger

Conversation

@rogeriojorge

Copy link
Copy Markdown
Member

Releasing v0.17 started two Upload Python Package runs: a GitHub release pushes its tag and fires the release event, and the workflow listened for both. One run uploaded; the other failed with PyPI's file-already-exists.

  • Listen for release only. The tag trigger was '**', so any tag would have published.
  • Drop the create-tag job: it installed setuptools_scm and produced nothing, and pypi-publish needed it only as an ordering link.
  • skip-existing: true on the publish step, so re-running a release workflow is a no-op instead of a failure.

Verified with actionlint.

A GitHub release pushes its tag and fires the release event, so the workflow
started two runs for v0.17 and the second failed with PyPI's file-already-
exists. Listen for the release only, drop the create-tag job (it installed
setuptools_scm and produced nothing), and let a re-run skip what is already
uploaded.
@codecov

codecov Bot commented Sep 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

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.

1 participant