Skip to content

Commit

Permalink
update release script
Browse files Browse the repository at this point in the history
1. tag release before updating changelog so the changelog can be
   updated with the correct version number

2. update the version number in Cargo.toml
  • Loading branch information
shouya committed Aug 6, 2024
1 parent f3caea3 commit b9249e0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ if [[ -n "$(git status --porcelain)" ]]; then
fi

version=$1

sed -i '0,/version/ { s/^version = ".*"/version = "'$version'"/ }' Cargo.toml
cargo check

git tag -a "$version" -m "Release $version"
git cliff -o CHANGELOG.md
git commit -am "chore: update changelog"
git tag -a "$version" -m "Release $version"

git push origin HEAD && git push origin "$version"

Expand Down

0 comments on commit b9249e0

Please sign in to comment.