Skip to content

ci: publish to PyPI on v* tags instead of every push to main - #11

Merged
iw4p merged 1 commit into
mainfrom
ci/publish-on-tags
Sep 11, 2026
Merged

iw4p merged 1 commit into
mainfrom
ci/publish-on-tags

Conversation

@iw4p

@iw4p iw4p commented Sep 11, 2026

Copy link
Copy Markdown
Owner

Until now every push to main built and uploaded to PyPI with the stored token, so any merge was a release and a merge without a version bump would fail the upload. This PR makes a vX.Y.Z tag the release trigger, adds a guard that the tag matches __version__, keeps the development branch publishing to TestPyPI, and bumps the actions to current majors. The README contribution notes say so.

Because GitHub reads the workflow from the pushed commit, merging this PR does not itself publish anything.

🤖 Generated with Claude Code

Pushing to main no longer uploads a release. A vX.Y.Z tag does, after a
guard step checks that the tag matches __version__. Pushes to the
development branch still go to TestPyPI. Actions bumped to current
majors.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@iw4p
iw4p merged commit 36d018b into main Sep 11, 2026
14 checks passed
@iw4p
iw4p deleted the ci/publish-on-tags branch September 11, 2026 22:50
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