pt/scripts/publish.sh

29 lines
907 B
Bash
Raw Normal View History

2024-01-17 14:55:07 +01:00
#!/bin/bash
2024-01-17 16:52:32 +01:00
set -e
cargo check --all-features
2024-01-18 17:36:35 +01:00
echo ">>>>>>>> SELECT A NEW VERSION"
2024-01-17 16:52:32 +01:00
cargo ws version --no-git-commit
2024-01-17 17:01:38 +01:00
NEW_VERSION=$(cat Cargo.toml | rg '^\s*version\s*=\s*"([^"]*)"\s*$' -or '$1')
2024-01-17 16:52:32 +01:00
bash scripts/set_all_versions.sh $NEW_VERSION
git add -A
git commit -m "Release v$NEW_VERSION"
2024-01-18 17:36:35 +01:00
echo ">>>>>>>> SKIP!!!!!"
cargo ws version --amend
git push || true
echo ">>>>>>>> PUBLISHING TO CRATES.IO NEXT"
sleep 10
cargo publish -p libpt-log
cargo publish -p libpt-core
cargo publish -p libpt-bintols
cargo publish -p libpt-net
cargo publish -p libpt-math
cargo publish -p libpt
echo ">>>>>>>> PUBLISHING TO CSCHERR.DE NEXT"
sleep 3
cargo publish --registry cscherr -p libpt-log
cargo publish --registry cscherr -p libpt-core
cargo publish --registry cscherr -p libpt-bintols
cargo publish --registry cscherr -p libpt-net
cargo publish --registry cscherr -p libpt-math
cargo publish --registry cscherr -p libpt