From 2c63350bcf19301315e8cca6e0bf4c3dc71e3b46 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Mon, 4 Sep 2023 13:39:27 -0400 Subject: [PATCH] update release script --- scripts/full-release.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/full-release.sh b/scripts/full-release.sh index e0cbaeb..cbfc18e 100755 --- a/scripts/full-release.sh +++ b/scripts/full-release.sh @@ -4,6 +4,7 @@ set -e DRY_RUN=true SKIP_CRATE_PUBLISH=false +ALLOW_DIRTY=false POSITIONAL=() while [[ $# -gt 0 ]]; do @@ -23,6 +24,10 @@ while [[ $# -gt 0 ]]; do SKIP_CRATE_PUBLISH=true shift # past argument ;; + --allow-dirty) + ALLOW_DIRTY=true + shift # past argument + ;; *) # unknown option POSITIONAL+=("$1") # save it in an array for later shift # past argument @@ -66,6 +71,9 @@ fi if [[ $SKIP_CRATE_PUBLISH == true ]]; then params+=(--no-publish) fi +if [[ $ALLOW_DIRTY == true ]]; then + params+=(--allow-dirty) +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..."