update release script

This commit is contained in:
Carson McManus 2023-09-04 13:39:27 -04:00
parent 29aca56067
commit 2c63350bcf

View file

@ -4,6 +4,7 @@ set -e
DRY_RUN=true DRY_RUN=true
SKIP_CRATE_PUBLISH=false SKIP_CRATE_PUBLISH=false
ALLOW_DIRTY=false
POSITIONAL=() POSITIONAL=()
while [[ $# -gt 0 ]]; do while [[ $# -gt 0 ]]; do
@ -23,6 +24,10 @@ while [[ $# -gt 0 ]]; do
SKIP_CRATE_PUBLISH=true SKIP_CRATE_PUBLISH=true
shift # past argument shift # past argument
;; ;;
--allow-dirty)
ALLOW_DIRTY=true
shift # past argument
;;
*) # unknown option *) # unknown option
POSITIONAL+=("$1") # save it in an array for later POSITIONAL+=("$1") # save it in an array for later
shift # past argument shift # past argument
@ -66,6 +71,9 @@ fi
if [[ $SKIP_CRATE_PUBLISH == true ]]; then if [[ $SKIP_CRATE_PUBLISH == true ]]; then
params+=(--no-publish) params+=(--no-publish)
fi 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[@]}" 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..." #echo "Verify that the publish succeeded, and Press any key to continue..."