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
Christoph J. Scherr 54eac92ca7
All checks were successful
cargo devel CI / cargo CI (push) Successful in 2m0s
publish script cool
2024-01-17 16:58:55 +01:00

10 lines
353 B
Bash
Executable file

#!/bin/bash
set -e
cargo check --all-features
cargo ws version --no-git-commit
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"
cargo ws publish --registry cscherr --amend --publish-as-is
cargo publish --registry cscherr -p libpt