Publishing a stapi-fastapi package build to PyPI is triggered by publishing a
GitHub release. Tags are the semantic version number
proceeded by a v
, such as v0.0.1
.
Release notes for the changes for each release should be tracked in CHANGELOG.md. The notes for each release in GitHub should generally match those in the CHANGELOG.
- Prepare the release.
- Figure out the next release version (following semantic versioning conventions).
- Ensure CHANGELOG.md has all necessary changes and
release notes under this next release version. Typically this step is
simply a matter of adding the header for the next version below
Unreleased
then reviewing the list of changes therein. - Ensure links are tracked as best as possible to relevant commits and/or PRs.
- Make a PR with the release prep changes, get it reviewed, and merge.
- Draft a new GitHub release.
- Create a new tag with the release version prefixed with the character
v
. - Title the release the same name as the tag.
- Copy the release notes from CHANGELOG.md for this release version into the release description.
- Create a new tag with the release version prefixed with the character
- Publish the release and ensure it builds and pushes to PyPI successfully.