- Update version number in
pyproject.tomland__init__.pyfiles. - Run
uv lock - Run
make test&make pre-commit - Commit, tag and push changes.
git add . git commit -m "chore: bump version to x.y.z" git push origin # wait for all CI jobs to succeed git tag x.y.z git push origin --tags
- Go to GitHub in the tags section, on the latest tag an click "Create release".
- Click on "Generate release notes" and review the changelog.
- Click "Publish release".
- Go to GitHub Actions, check that the CI release job succeed.
Use this rarely, when docs or blog content must be published under the current version and latest, without creating a GitHub release, PyPI release, or git tag.
Use the MAJOR.MINOR version number (e.g. 0.11 and not 0.11.0).
Do not force-push gh-pages.
- Commit and push the docs changes to
main. - Wait for the
publish-docsworkflow to publishdev. - Publish the same docs as the versioned
latestdocs.git fetch origin gh-pages git branch -f gh-pages origin/gh-pages uv run mike deploy -b gh-pages <MAJOR.MINOR> latest --update-aliases --push git fetch origin gh-pages git show origin/gh-pages:versions.json