# Ensure you're on `main` and are up-to-date
git checkout main
git pull
# Create the release branch
git checkout -b release/X.Y.Z
Add a new section to the changelog, including all the unreleased changes.
## [X.Y.Z] - YYYY-MM-DD
Commit the changes:
git add CHANGELOG.md
git commit -m "Add changelog section for X.Y.Z"
# Bump the version
bump2version [major|minor|patch]
# Push the release branch
git push -u origin release/X.Y.Z
Done in GitHub UI.
# Ensure you're on `main` and are up-to-date
git checkout main
git pull
# Tag the release
git tag -s X.Y.Z -m "Release X.Y.Z"
# Push the tag
git push origin X.Y.Z
Copy the changes from the changelog for the release into the release notes in GitHub.
This is done automatically using publish.yaml