👷 ci(release): add workflow_dispatch release with zipapp and get-virtualenv - #3040
Merged
Conversation
gaborbernat
force-pushed
the
release
branch
13 times, most recently
from
February 16, 2026 04:26
83a3cb6 to
13aae03
Compare
…ualenv The tag-triggered release workflow only handled PyPI publishing, leaving the zipapp build, GitHub Release creation, and get-virtualenv update as manual steps. Replace it with a workflow_dispatch workflow that accepts a version input and handles the full release pipeline: changelog generation, commit and tag, PyPI publish, zipapp build, GitHub Release, and get-virtualenv update. Document both the GHA and local release paths in the development docs. Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net>
for more information, see https://pre-commit.ci
gaborbernat
added a commit
that referenced
this pull request
Feb 16, 2026
…ualenv (#3040) Signed-off-by: Bernát Gábor <bgabor8@bloomberg.net> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This was referenced Mar 12, 2026
This was referenced Mar 13, 2026
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.
Releasing virtualenv currently requires running
tox -e releaselocally to generate the changelog and push a tag, which only triggers PyPI publishing. The zipapp build, GitHub Release creation, and updatingget-virtualenv(which serveshttps://bootstrap.pypa.io/virtualenv.pyz) are all separate manual steps that are easy to forget or do inconsistently.This replaces the tag-triggered release workflow with a
workflow_dispatchone that accepts a version input and handles the entire pipeline: changelog generation viatowncrier, commit and tag push tomain, PyPI publish via trusted publishing, zipapp build viatox r -e zipapp, GitHub Release with the zipapp attached, and pushing the updated zipapp topypa/get-virtualenv. The workflow requires aGH_RELEASE_TOKENfine-grained PAT secret scoped to bothvirtualenvandget-virtualenvwith contents read/write permission.The local
tox -e releasepath is preserved for cases where a maintainer prefers to drive the process manually. The development docs now document both paths end-to-end, including the previously undocumented zipapp andget-virtualenvupdate steps.