chore: add push command to bump script
All checks were successful
Rust / build_and_test (push) Successful in 23s
All checks were successful
Rust / build_and_test (push) Successful in 23s
This commit is contained in:
@@ -6,11 +6,22 @@ VERSION="$(git cliff --bumped-version)"
|
||||
VERSION_CLEAN="${VERSION#v}"
|
||||
sed -i "s/^version = \".*\"/version = \"${VERSION_CLEAN}\"/" Cargo.toml
|
||||
cargo check
|
||||
|
||||
echo Press Y to commit version bump to ${VERSION_CLEAN}
|
||||
read -r CONFIRM
|
||||
if [ "${CONFIRM}" != "Y" ]; then
|
||||
echo Aborting
|
||||
exit 1
|
||||
fi
|
||||
|
||||
git commit -am "chore: bump version to ${VERSION}"
|
||||
git tag -am "Version ${VERSION}" "${VERSION}"
|
||||
|
||||
echo Press Y to push commit and tag
|
||||
read -r CONFIRM
|
||||
if [ "${CONFIRM}" != "Y" ]; then
|
||||
echo Aborting
|
||||
exit 1
|
||||
fi
|
||||
git push
|
||||
git push --tags
|
||||
|
||||
Reference in New Issue
Block a user