ci(release): sync vastlint-python on release#54
Merged
Conversation
Add a sync-python job to release.yml that, after the GitHub Release is published, bumps src/vastlint/_version.py in the vastlint-python repo and tags it at the same version. That tag triggers vastlint-python's publish workflow, which vendors the FFI libs via fetch-libs.sh and pushes the wheel to PyPI through trusted publishing. Gated on the ENABLE_PYTHON_SYNC repo variable and authenticated with the VASTLINT_PYTHON_DEPLOY_KEY deploy key, mirroring the existing sync-go job. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
aleksUIX
added a commit
that referenced
this pull request
Jun 20, 2026
Add a sync-python job to release.yml that, after the GitHub Release is published, bumps src/vastlint/_version.py in the vastlint-python repo and tags it at the same version. That tag triggers vastlint-python's publish workflow, which vendors the FFI libs via fetch-libs.sh and pushes the wheel to PyPI through trusted publishing. Gated on the ENABLE_PYTHON_SYNC repo variable and authenticated with the VASTLINT_PYTHON_DEPLOY_KEY deploy key, mirroring the existing sync-go job.
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.
Adds a
sync-pythonjob torelease.yml, mirroring the existingsync-gojob, to close the manual gap in the Python release chain.What it does
On each
vX.Y.Zcore release, after the GitHub Release (with thevastlint-ffi-*tarballs) is published:aleksUIX/vastlint-pythonvia theVASTLINT_PYTHON_DEPLOY_KEYdeploy key.src/vastlint/_version.pyto the tag version.BOT_GPG_KEY), commits, pushesmain(no-op if already at that version).vX.Y.Z(skips if it already exists).That tag triggers vastlint-python's
publish-pypi.yml, which runsfetch-libs.shagainst this release to vendor the shared libraries and publishes the wheel to PyPI via trusted publishing (OIDC).Activation
Dormant until
ENABLE_PYTHON_SYNCrepo variable is set totrue, so merging is safe. Requires theVASTLINT_PYTHON_DEPLOY_KEYsecret (private half) here and the matching write deploy key on vastlint-python, plus a PyPI trusted publisher for the project.🤖 Generated with Claude Code