Repository navigation
ci: merge PyPI publish workflows, switch to trusted publishing - #114
Merged
Merged
Conversation
Fold the reducto alias shim job into publish-pypi.yml as a dependent job so it runs on the release ref instead of the default branch via workflow_run. Both jobs now publish with uv via PyPI OIDC trusted publishing; no API token secret is needed. Drop bin/publish-pypi and its pyproject references. Update CONTRIBUTING.
kirthi20
approved these changes
Sep 8, 2026
Merged
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.
Stacked on #113.
What
publish-shim-pypi.ymlintopublish-pypi.ymlas a second job withneeds: publish.uv publish --trusted-publishing always. No token secret.environment: pypiandpermissions: id-token: write. Top level iscontents: read.uv build+uvx twine check --strictinstead ofpip install build twine.bin/publish-pypiand itspyproject.tomlreferences (sdist include, ruff ignore).Why one workflow
workflow_runalways runs the workflow file from the default branch and checks out the default branch. It also does not fire when the parent is run viaworkflow_dispatchon a non-default branch. Aneeds:job runs on the same ref as the release tag and shows up in the same run.Setup before the next release
reductoai→ Manage → Publishing → add GitHub publisher: ownerreductoai, reporeducto-python-sdk, workflowpublish-pypi.yml, environmentpypi.reducto.pypienvironment in GitHub repo settings.REDUCTO_PYPI_TOKEN/PYPI_TOKENsecrets.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.