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