Files
gotify-desktop/release
2023-10-29 23:23:03 +01:00

19 lines
332 B
Bash
Executable File

#!/bin/bash -eu
set -o pipefail
readonly VERSION=${1:?}
cd "$(git rev-parse --show-toplevel)"
sed -i "s/^\(version = \"\).*\(\"\)/\1$VERSION\2/w /dev/stdout" Cargo.toml
cargo update
cargo check && cargo test
git add Cargo.{toml,lock}
git commit -m "chore: version ${VERSION}"
git tag -f -m "Version ${VERSION}" "${VERSION}"