1.0 KiB
1.0 KiB
Release process
Crate prometheus
-
Create pull request with bumped
versioninCargo.tomland updatedCHANGELOG.md. -
Once merged clean your local environment.
cargo clean
git clean -fd
- Tag the release.
tag="v$(sed -En 's/^version = \"(.*)\"$/\1/p' Cargo.toml)"
git tag -s "${tag}" -m "${tag}"
- Publish the release.
cargo publish
- Push the tag.
git push origin $tag
Crate prometheus-static-metric
-
Create pull request with bumped
versioninstatic-metric/Cargo.tomland updatedstatic-metric/CHANGELOG.md. -
Once merged clean your local environment.
cd static-metric
cargo clean
git clean -fd
- Tag the release.
tag="$(sed -En 's/^name = \"(.*)\"$/\1/p' Cargo.toml | head -n 1)-v$(sed -En 's/^version = \"(.*)\"$/\1/p' Cargo.toml)"
git tag -s "${tag}" -m "${tag}"
- Publish the release.
cargo publish
- Push the tag.
git push origin $tag