This document contains all information related to release.
- Change the version in
Cargo.toml
to the<new-tag>
- Run the commands and verify that everything looks/works as expected:
cargo update
cargo +nightly fmt --all -- --check
cargo clippy -- -D warnings
cargo test -- --nocapture
cargo doc --open
cargo build --release
- Change the version in
CHANGELOG.md
and uncomment the line,<!--The latest version contains all changes.-->
. - Create a commit with the following message:
Update to <new-tag>
. Do not push (or merge) the commit. - Test the publishing workflow within each crate:
cargo publish --dry-run
Finally, push (or merge) the preparation commit.
Once the prepation commit has been pushed (or merged) into main
, execute the following commands:
git tag $TAG
git push --tags origin main
Now, publish the crate.
cargo publish
Check crates.io
and docs.rs
afterwards via the crate's page.
On a branch tracking the new tag, execute the following commands at the root of the repository:
docker build -t $IMAGE .
docker push $IMAGE