Tagging script should run the test and force formatting => dirty repo will prevent the tagging
This commit is contained in:
parent
6a4fbe3098
commit
75ca5735a8
@ -3,6 +3,12 @@
|
||||
CURRENT_VERSION=$(grep -E "^version\s?=" Cargo.toml | cut --delimiter='"' --fields=2)
|
||||
TAG="v$CURRENT_VERSION"
|
||||
|
||||
cargo fmt
|
||||
|
||||
if ! cargo test; then
|
||||
exit $?
|
||||
fi
|
||||
|
||||
if cargo publish --dry-run; then
|
||||
echo "Creating tag: $TAG"
|
||||
echo "Do not forget to push it: git push origin $TAG"
|
||||
|
Loading…
Reference in New Issue
Block a user