Skip to content

Commit 14f0c87

Browse files
authored
Merge pull request #1428 from stevenengler/fix-bumpversion-doc
Fix docs to properly update the git tag after bumpversion
2 parents d62d1b8 + dc5184e commit 14f0c87

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

docs/maintainer_playbook.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,18 @@ git checkout main
1515
# that commit.
1616
bumpversion <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)
2124
git add src/main/Cargo.lock src/test/Cargo.lock
2225
git 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

3132
Our releases will then be tagged off of the main branch.

0 commit comments

Comments
 (0)