Skip to content

ci: publish tagged releases to PyPI - #12

Merged
sscodeai merged 1 commit into
mainfrom
ci/pypi-publish
Nov 26, 2026
Merged

sscodeai merged 1 commit into
mainfrom
ci/pypi-publish

Conversation

@sscodeai

Copy link
Copy Markdown
Owner

Summary

  • Adds .github/workflows/publish.yml, triggered by tags matching v*:
    • builds sdist/wheel with uv build
    • validates metadata with uvx twine check
    • publishes through PyPI Trusted Publishing (pypa/gh-action-pypi-publish)
  • Adds docs/releasing.md with the one-time PyPI trusted-publisher setup and the release checklist.
  • Links the release process from CONTRIBUTING.md.
  • Records the change in CHANGELOG.md.

Why

The repository had version bumps, tags, and GitHub Releases, but no automated PyPI path and no documented trusted-publisher setup. This makes the package publishable without storing a PyPI token in GitHub.

Verification

Check Result
YAML parse OK
uv lock --check lockfile current
uv build built aiitg-0.4.0 sdist + wheel
uvx twine check dist/* both distributions passed
GitHub CI runs the normal test matrix on this PR

Limitations

  • The publish job does not run on this PR; it only runs for v* tags.
  • A repository admin must create the pypi environment and configure the PyPI trusted publisher before the first tag publish.
  • GitHub Release creation remains a manual gh release create step, documented in docs/releasing.md.

Add a tag-triggered Publish workflow that builds the sdist/wheel, checks metadata with twine, and publishes through PyPI Trusted Publishing. Document the one-time PyPI setup and release checklist in docs/releasing.md.
@sscodeai
sscodeai merged commit 861dbe5 into main Nov 26, 2026
4 checks passed
@sscodeai
sscodeai deleted the ci/pypi-publish branch November 26, 2026 11:18
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