2021-10-31 12:17:31 +03:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
|
2021-12-19 08:11:08 +03:00
|
|
|
git pull || true
|
|
|
|
|
|
|
|
yarn changelog
|
2022-09-16 09:46:59 +03:00
|
|
|
cargo mono bump -i
|
2021-12-19 08:11:08 +03:00
|
|
|
# Ensure that Cargo.lock is up-to-date
|
2022-03-24 06:05:47 +03:00
|
|
|
cargo metadata --format-version 1 > /dev/null
|
2023-01-05 13:48:00 +03:00
|
|
|
(cd ./bindings && cargo metadata --format-version 1 > /dev/null)
|
2022-01-07 14:03:03 +03:00
|
|
|
|
|
|
|
# Ensure that dependencies are all verified
|
|
|
|
./scripts/crev/verify.sh
|
|
|
|
|
2021-12-19 08:11:08 +03:00
|
|
|
git add -A
|
2022-03-12 04:00:23 +03:00
|
|
|
git commit -m 'chore: Publish crates'
|
2022-01-27 19:13:16 +03:00
|
|
|
git push --no-verify
|
2023-01-05 13:48:00 +03:00
|
|
|
|
|
|
|
# Publish
|
|
|
|
cargo mono publish --no-verify
|
|
|
|
(cd ./bindings && cargo mono publish --no-verify)
|