2024-01-23 23:41:05 +01:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
cargo check --all-features
|
|
|
|
echo ">>>>>>>> SELECT A NEW VERSION"
|
2024-01-23 23:43:02 +01:00
|
|
|
cargo ws version --no-git-commit -- -p autocrate
|
2024-01-23 23:41:05 +01:00
|
|
|
NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
|
|
|
|
bash scripts/set_all_versions.sh $NEW_VERSION
|
|
|
|
git add -A
|
|
|
|
git commit -m "Release v$NEW_VERSION" || (echo ">>>>>>>> COMMIT FAILED OR THERE WAS NOTHING TO COMMIT"; sleep 5)
|
|
|
|
echo ">>>>>>>> SKIP!!!!!"
|
2024-01-23 23:43:02 +01:00
|
|
|
cargo ws version --amend -- -p autocrate
|
2024-01-23 23:41:05 +01:00
|
|
|
echo ">>>>>>>> PUBLISHING RELEASE FOR REPO"
|
|
|
|
bash scripts/release.sh
|
|
|
|
echo ">>>>>>>> PUBLISHING TO CRATES.IO NEXT"
|
|
|
|
sleep 10
|
2024-01-23 23:43:02 +01:00
|
|
|
cargo publish
|
2024-01-23 23:41:05 +01:00
|
|
|
echo ">>>>>>>> PUBLISHING TO CSCHERR.DE NEXT"
|
|
|
|
sleep 3
|
2024-01-23 23:43:02 +01:00
|
|
|
cargo publish --registry cscherr
|