Skip to content

feat: publish to PyPI on a python-vX.Y.Z tag - #10

Merged
scttfrdmn merged 1 commit into
mainfrom
feat/publish-to-pypi
Sep 5, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
feat/publish-to-pypi

Conversation

@scttfrdmn

Copy link
Copy Markdown
Contributor

Adds .github/workflows/publish-python.yaml, modeled directly on python-sdk's publish-python.yaml: PyPI Trusted Publishing (OIDC via id-token: write in a dedicated pypi GitHub environment), no stored API token, pinned action SHAs, twine check before upload.

Triggered on a python-vX.Y.Z tag, kept deliberately separate from the existing vX.Y.Z tag that release.yml already uses for GitHub Releases — a PyPI publish is now an explicit, separate decision per release, not automatic.

Requires a one-time PyPI-side step before this can actually publish: registering this repo/workflow/environment as a trusted publisher for this project name at https://pypi.org/manage/account/publishing/ (the project name isn't registered on PyPI yet, so this uses PyPI's pending-publisher flow, which supports registering trust before a project exists).

Also creates the pypi GitHub environment on this repo (via API, separately from this PR) so the workflow has something to run against.

Adds .github/workflows/publish-python.yaml, modeled directly on
python-sdk's publish-python.yaml: PyPI Trusted Publishing (OIDC via
id-token: write in a dedicated 'pypi' GitHub environment), no stored API
token, pinned action SHAs, twine check before upload.

Triggered on a python-vX.Y.Z tag, kept deliberately separate from the
existing vX.Y.Z tag that release.yml already uses for GitHub Releases —
a PyPI publish is now an explicit, separate decision per release, not
automatic.

Requires a one-time PyPI-side step: registering this repo/workflow/
environment as a trusted publisher for this project name at
https://pypi.org/manage/account/publishing/ (project name is not yet
registered on PyPI, so this uses PyPI's pending-publisher flow).
@scttfrdmn
scttfrdmn merged commit 0781c94 into main Sep 5, 2026
2 checks passed
@scttfrdmn
scttfrdmn deleted the feat/publish-to-pypi branch September 5, 2026 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant