From a8d3f3fc9935a71c85b365f3a6226f3f9aa95457 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Mon, 4 Mar 2024 17:17:38 -0500 Subject: [PATCH] update release script --- scripts/full-release.sh | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/scripts/full-release.sh b/scripts/full-release.sh index 11c51c6..01afe69 100755 --- a/scripts/full-release.sh +++ b/scripts/full-release.sh @@ -54,20 +54,7 @@ This will do everything needed to release a new version: """ echo "Previewing changes..." -cargo smart-release --update-crates-index --no-changelog --no-tag --no-push --no-publish - -if [ "$DRY_RUN" = true ]; then - echo "This is a dry run, nothing will be done. Artifacts will be built, but not published. Use --execute to do it for real." -else - echo "This is not a dry run. This is the real deal!" -fi -echo "Press any key to continue..." -read -n 1 -s -r - params=() -if [[ $DRY_RUN == false ]]; then - params+=(--execute) -fi if [[ $BUMP != "" ]]; then params+=(--bump "$BUMP") params+=(--bump-dependencies "$BUMP") @@ -80,6 +67,20 @@ if [[ $ALLOW_DIRTY == true ]]; then fi cargo smart-release --update-crates-index --no-changelog --no-tag --no-push --no-publish "${params[@]}" +if [ "$DRY_RUN" = true ]; then + echo "This is a dry run, nothing will be done. Artifacts will be built, but not published. Use --execute to do it for real." +else + echo "This is not a dry run. This is the real deal!" +fi +echo "Press any key to continue..." +read -n 1 -s -r + + +if [[ $DRY_RUN == false ]]; then + params+=(--execute) +fi +cargo smart-release --update-crates-index --no-changelog --no-tag --no-push --no-publish "${params[@]}" + #echo "Verify that the publish succeeded, and Press any key to continue..." # read -n 1 -s -r