-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
109 additions
and
78 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
if [ -z "$1" ]; then | ||
echo "Usage: $0 <tag>" | ||
exit 1 | ||
fi | ||
|
||
TAG=$1 | ||
|
||
echo "Bumping to $TAG" | ||
|
||
if ! command -v cargo bump -h 2> /dev/null; then | ||
echo "error: you do not have 'cargo bump' installed which is required for this script." | ||
exit 1 | ||
fi | ||
|
||
cargo bump $TAG | ||
|
||
git add Cargo.* | ||
git commit -m "feat: v$TAG" -S | ||
git tag -a v$TAG -m v$TAG -s | ||
|
||
echo "Done!" | ||
echo "To push the changes and tag, run: git push --follow-tags" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters