Use a PAT to create the release, not the default GITHUB_TOKEN - #24
Merged
Conversation
Adds .github/workflows/auto-release.yml: after the Python Test workflow succeeds for a push to main, it reads the version from pyproject.toml and, if that version hasn't been released yet, creates a `vX.Y.Z` tag and GitHub Release for that commit. Publishing a Release is exactly what python-publish.yml already listens for, so merging a PR that bumps the version now publishes to PyPI with no separate manual "cut a release" step. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FPDh1XcpTJT48Tw27fD7Ms
GitHub Actions doesn't fire other workflows' triggers (release: published included) for events performed with the automatic GITHUB_TOKEN, to prevent recursive workflow runs. Without this fix, auto-release.yml would successfully tag and "release" a version but python-publish.yml would silently never run, so nothing would actually reach PyPI. Switches the release-creation step to a RELEASE_TOKEN repo secret (a PAT), with a clear failure if it isn't set, and documents the one-time setup in the README. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FPDh1XcpTJT48Tw27fD7Ms
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.
No description provided.