From c1b79db77758dec8a321b6dd62626766be9d89c1 Mon Sep 17 00:00:00 2001 From: desbma Date: Sat, 12 Oct 2024 19:09:49 +0200 Subject: [PATCH] chore: update release script --- release | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/release b/release index 4de2393..6db53f6 100755 --- a/release +++ b/release @@ -1,14 +1,20 @@ #!/bin/bash -eu -readonly VERSION="${1-$(date +%-Y.%-m.%-d)}" +set -o pipefail + +readonly VERSION="${1:?}" + +cd "$(git rev-parse --show-toplevel)" cargo set-version "${VERSION}" +cargo upgrade cargo update +cargo check cargo test --bins git add Cargo.{toml,lock} -git commit -m "chore: version ${VERSION}" -git tag "v${VERSION}" +git commit -m "chore: version ${VERSION}" +git tag -f -m "Version ${VERSION}" "${VERSION}"