Repository navigation
ci: release through dispatched workflows publishing to PyPI - #2
Merged
Merged
Conversation
Signed-off-by: Adrien Mannocci <adrien.mannocci@gmail.com>
Signed-off-by: Adrien Mannocci <adrien.mannocci@gmail.com>
Signed-off-by: Adrien Mannocci <adrien.mannocci@gmail.com>
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.
Summary
Replaces the local
poe releaseand tag-triggered publish with two manually dispatched workflows:pre-release.yml(input:X.Y.Z) stamps the changelog, sets the version and opens a PR fromfeat/pre-release-vX.Y.Z.release.yml(input: next version,X.Y.Z-dev) runs CI, tags the project version, publishes to PyPI through trusted publishing, then opens a PR fromfeat/post-release-vX.Y.Z-devsetting the next version.Changes
scripts/release.pynow haspre,runandposttasks, exposed asrelease:pre,releaseandrelease:post.releaserefuses a non-release version, so a.dev0build can't be published if the pre-release PR isn't merged. Failures exit non-zero, which stops the publish job.ci.ymlcan be called withworkflow_call, and its ubuntu/3.12 job uploads thedistartifact that gets published.main.techcode-io/github-actions/setup-uvproxy, which pins uv to0.13.5by default.Testing
gh. Each step worked anduv sync --lockedpassed after each version change. Bad input, a dev version and an existing tag all failed as intended.uv run poe cipasses locally (231 tests).Before the first release
techcode-io/proclet, workflowrelease.yml, environmentpypi, if there isn't one yet.GITHUB_TOKENdon't triggerci.yml. Ifmainrequires status checks, the release PRs won't get them without a push to the branch or a PAT/App token.release.ymlstill runs CI before publishing.