Files
chkr/scripts/bump.sh
Lukas Wölfer cb99d74b4e
All checks were successful
Release / build_release (push) Successful in 29s
Rust / build_and_test (push) Successful in 23s
chore: bump version to v0.2.0
2026-01-29 21:19:46 +01:00

16 lines
416 B
Bash

#!/bin/sh
set -euo pipefail
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}"