Add a script to have consistents tags
This commit is contained in:
parent
20c45f269c
commit
d7e5bcea1b
13
scripts/git-tag.sh
Executable file
13
scripts/git-tag.sh
Executable file
@ -0,0 +1,13 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
CURRENT_VERSION=$(grep -E "^version\s?=" Cargo.toml | cut --delimiter='"' --fields=2)
|
||||||
|
TAG="v$CURRENT_VERSION"
|
||||||
|
|
||||||
|
if cargo publish --dry-run; then
|
||||||
|
echo "Creating tag: $TAG"
|
||||||
|
echo "Do not forget to push it: git push origin $TAG"
|
||||||
|
|
||||||
|
git tag -a "$TAG" -m "Version $CURRENT_VERSION"
|
||||||
|
else
|
||||||
|
exit $?
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user