From 9a35132d85627472a46154944b44258ab1e6cb99 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Wed, 17 Jan 2024 16:52:32 +0100 Subject: [PATCH] publish script cool --- scripts/publish.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/publish.sh b/scripts/publish.sh index 61ccb7a..5769409 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -1,3 +1,10 @@ #!/bin/bash -cargo ws publish --registry cscherr --publish-as-is +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 $1 +git add -A +git commit -m "Release v$NEW_VERSION" +cargo ws publish --registry cscherr --amend cargo publish --registry cscherr -p libpt