This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
pt/scripts/publish.sh

11 lines
372 B
Bash
Raw Permalink 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
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-17 18:08:56 +01:00
cargo ws publish --registry cscherr --no-git-push --publish-as-is || cargo publish --registry cscherr -p libpt
2024-01-17 16:59:02 +01:00
git push