File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,17 +15,18 @@ git checkout main
1515# that commit.
1616bumpversion < patch| minor| major> --tag --commit
1717
18- # Update the Cargo lock files
18+ # Get the new version number.
19+ VERSION=` awk -F " =" ' /current_version/ {print $2}' .bumpversion.cfg | tr -d ' ' `
20+
21+ # Update the Cargo lock files, then update the commit and tag
1922(cd src/main && cargo update --workspace)
2023(cd src/test && cargo update --workspace)
2124git add src/main/Cargo.lock src/test/Cargo.lock
2225git commit --amend --no-edit
23-
24- # Get the new version number.
25- VERSION=` awk -F " =" ' /current_version/ {print $2}' .bumpversion.cfg | tr -d ' ' `
26+ git tag -f -a " v$VERSION "
2627
2728# Push to GitHub.
28- git push origin v$VERSION
29+ git push origin " v$VERSION "
2930```
3031
3132Our releases will then be tagged off of the main branch.
You can’t perform that action at this time.
0 commit comments