Skip to content

ci: publish to PyPI with trusted publishing - #32

Merged
weiwchu merged 2 commits into
mainfrom
ci/publish-pypi
Nov 21, 2026
Merged

weiwchu merged 2 commits into
mainfrom
ci/publish-pypi

Conversation

@weiwchu

@weiwchu weiwchu commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Adds .github/workflows/publish.yml. It builds the sdist and wheel, checks the tag matches fabench.__version__, runs twine check --strict, and uploads to PyPI with trusted publishing, so no token is stored anywhere.

  • Runs on any v* tag pushed to GitHub.
  • Can also run by hand (Actions → publish → Run workflow, tag v2.1.0). That covers v2.1.0, which was tagged before this workflow existed, without moving the tag.

PyPI side: a pending publisher for olewave/fa-bench, workflow publish.yml, environment pypi.

Checked locally: v2.1.0 builds fa_bench-2.1.0.tar.gz and fa_bench-2.1.0-py3-none-any.whl, and both pass twine check --strict.

@weiwchu
weiwchu merged commit 564978a into main Nov 21, 2026
5 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