-
Create a release branch:
git checkout main git pull git checkout -b release/vX.Y.Z
-
Update the version in Cargo.toml under
[workspace.package]:[workspace.package] version = "X.Y.Z"
-
Regenerate the lockfile:
cargo generate-lockfile
-
Commit and push the version bump:
git add Cargo.toml Cargo.lock git commit -m "Release vX.Y.Z" git push -u origin release/vX.Y.Z -
Open a pull request into
mainand get it merged. -
Tag the release from
main:git checkout main git pull git tag vX.Y.Z git push origin vX.Y.Z
The tag must match the pattern
vX.Y.Zand the version inCargo.toml. -
Monitor the release. The Release workflow will automatically verify the tag matches the crate version and publish to crates.io.
You can follow progress in the Actions tab of the repository.