Release process

Crate prometheus

  1. Create pull request with bumped version in Cargo.toml and updated CHANGELOG.md.

  2. Once merged clean your local environment.

cargo clean
git clean -fd
  1. Tag the release.
tag="v$(sed -En 's/^version = \"(.*)\"$/\1/p' Cargo.toml)"
git tag -s "${tag}" -m "${tag}"
  1. Publish the release.
cargo publish
  1. Push the tag.
git push origin $tag

Crate prometheus-static-metric

  1. Create pull request with bumped version in static-metric/Cargo.toml and updated static-metric/CHANGELOG.md.

  2. Once merged clean your local environment.

cd static-metric
cargo clean
git clean -fd
  1. 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}"
  1. Publish the release.
cargo publish
  1. Push the tag.
git push origin $tag