- Create the project on PyPI (
graham-agent) if not already created. - In PyPI project settings, configure a Trusted Publisher for this repo and workflow:
- Owner:
fdelbrayelle - Repository:
graham - Workflow file:
.github/workflows/release.yml - Environment:
pypi
- Owner:
- In GitHub repository settings, create an environment named
pypi(no secret required for Trusted Publishing).
- Update version in
pyproject.toml. - Update
CHANGELOG.md. - Commit and push to
main. - Create and push a version tag:
git tag -a v0.1.1 -m "v0.1.1"
git push origin v0.1.1- GitHub Actions workflow
Releasewill:- build wheel + sdist
- run
twine check - create/update the GitHub Release with artifacts
- publish to PyPI