This document describes the steps to release a new version of codspeed-go.
-
Set the new version number
export NEW_CODSPEED_GO_VERSION=0.4.2Replace
0.4.2with the desired version number. -
Generate the changelog
git cliff --tag "v$NEW_CODSPEED_GO_VERSION" -o CHANGELOG.mdIf you haven't installed
git-cliff, install it withcargo binstall git-cliff.This will update the CHANGELOG.md file with all changes since the last release.
-
Update the go-runner version
Edit go-runner/Cargo.toml and change the
versionfield to matchNEW_CODSPEED_GO_VERSION:[package] version = "0.4.2" # Update this line
-
Commit the changes
git add . git commit -m "chore: release v$NEW_CODSPEED_GO_VERSION"
-
Create an annotated git tag
git tag -a "v$NEW_CODSPEED_GO_VERSION" -m "Release v$NEW_CODSPEED_GO_VERSION"
Note: Use an annotated tag (with
-aand-mflags) so that--follow-tagswill push it automatically. -
Push with tags
git push --follow-tags
This will push the commit and the annotated tag to the remote repository in one command.