mirror of
https://github.com/desbma/gotify-desktop.git
synced 2024-02-03 20:34:06 +03:00
19 lines
332 B
Bash
Executable File
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}"
|