ci(release): add stable Python SDK release PR flow#451
Merged
Abhijeet Prasad (AbhiPrasad) merged 1 commit intoMay 21, 2026
Conversation
Luca Forstner (lforst)
approved these changes
May 20, 2026
Add a GitHub Actions driven stable release path that creates a version-bump PR from the Prepare Stable Python SDK Release workflow. Merging the release/py-sdk-v<version> PR now triggers Publish Python SDK directly, so tagging and publishing live in one release workflow instead of a separate tag workflow. Gate only stable, non-dry-run PyPI publishes with the pypi-publish environment so the job that calls trusted publishing receives the protected environment context. After approval, the publish workflow builds, publishes to PyPI, and creates the py-sdk-v<version> GitHub Release tag and release. Prereleases continue to use the manual Publish Python SDK workflow without environment approval or a committed version bump; the requested prerelease version is supplied as a workflow input and applied as a build override. Update the release validator and docs for the new process.
90e42e8 to
743aadf
Compare
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.
resolves https://linear.app/braintrustdata/issue/BT-5169/set-up-publish-workflow-environment-rules-for-python-sdk
Add a GitHub Actions driven stable release path that creates a version-bump PR from the Prepare Stable Python SDK Release workflow. Merging the release/py-sdk-v PR now triggers Publish Python SDK directly, so tagging and publishing live in one release workflow instead of a separate tag workflow.
Gate only stable, non-dry-run PyPI publishes with the pypi-publish environment so the job that calls trusted publishing receives the protected environment context. After approval, the publish workflow builds, publishes to PyPI, and creates the py-sdk-v GitHub Release tag and release.
Prereleases continue to use the manual Publish Python SDK workflow without environment approval or a committed version bump; the requested prerelease version is supplied as a workflow input and applied as a build override. Update the release validator and docs for the new process.