Repository navigation
Skip publishing versions with existing release tags - #321
Merged
Merged
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the tag-based PyPI release guard.
No open issues 🎉
What changed in this PR
This PR prevents duplicate PyPI uploads by using existing Git release tags to determine whether the SDK version needs publishing.
Changes:
- Check for a tag matching
__version__before downloading artifacts or publishing. - Skip tag creation when the version is already tagged.
- Document the release guard and recovery when publishing succeeds but tagging fails.
| File | Description |
|---|---|
RELEASING.md |
Explains tag-based release skipping and recovery after tag creation fails. |
.github/workflows/pypi-release.yml |
Adds a release-tag check and gates publishing and tagging on its result. |
Review effort: Balanced
Skip releases with existing version tags Signed-off-by: Doug Davis <duglin@gmail.com>
duglin
force-pushed
the
copilot/fix-publish-job-failure
branch
from
November 16, 2026 14:37
ff0edf0 to
4430ee6
Compare
duglin
marked this pull request as ready for review
November 16, 2026 14:39
PlugaruT
approved these changes
Nov 16, 2026
This was referenced Nov 29, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change:
Description:
The publish job failed because a push to main attempted to upload version
2.2.0again; PyPI rejected the existing wheel.Pre-submission checklist:
git commit --signoff.README.md,CHANGELOG.md, etc.) as necessary.pre-commitandtoxand all checks pass.