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..."