From 13ac352a10a09ae1eb96c43c4e8ed50b40194405 Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Sun, 1 Sep 2024 15:37:00 -0700 Subject: [PATCH] Helpers to bump version number --- Makefile | 6 ++++++ scripts/update-crate-version.sh | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 Makefile create mode 100755 scripts/update-crate-version.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..f6a9541 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +.PHONEY: commit +commit: + bash scripts/update-crate-version.sh + git push + +all: commit diff --git a/scripts/update-crate-version.sh b/scripts/update-crate-version.sh new file mode 100755 index 0000000..6da9bea --- /dev/null +++ b/scripts/update-crate-version.sh @@ -0,0 +1,5 @@ +#!env bash +set -e -x +cargo-set-version set-version --bump patch +VERSION="$(awk -F\" '/^version/ {print $2}' server/Cargo.toml)" +git commit */Cargo.toml -m "Bumping version to ${VERSION:?}"