Skip to content

Commit

Permalink
chore: update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
desbma committed Oct 12, 2024
1 parent 192c8ad commit c1b79db
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions release
Original file line number Diff line number Diff line change
@@ -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}"

0 comments on commit c1b79db

Please sign in to comment.