Skip to content

Publish to PyPI from a tag using trusted publishing - #6

Merged
dbkosky merged 1 commit into
masterfrom
chore/publish-to-pypi
Sep 10, 2026
Merged

dbkosky merged 1 commit into
masterfrom
chore/publish-to-pypi

Conversation

@dbkosky

@dbkosky dbkosky commented Sep 10, 2026

Copy link
Copy Markdown
Owner

Publish to PyPI on a v* tag, matching how releases are already cut.

Use trusted publishing over OIDC, so no API token is stored in the repository.

Gate the job behind a pypi environment, so a tag cannot publish without approval.

Fail the build when the version in pyproject.toml does not match the tag.

@dbkosky
dbkosky merged commit 5ece7fb into master Sep 10, 2026
2 checks passed
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