chore: added CI
All checks were successful
Rust / build_and_test (push) Successful in 1m19s

This commit is contained in:
Lukas Wölfer
2026-04-08 22:52:08 +02:00
parent 024d64b284
commit bb600edd00
4 changed files with 172 additions and 0 deletions

27
scripts/bump.sh Normal file
View File

@@ -0,0 +1,27 @@
#!/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}"
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