update release script
This commit is contained in:
parent
29aca56067
commit
2c63350bcf
1 changed files with 8 additions and 0 deletions
|
@ -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..."
|
||||
|
|
Loading…
Reference in a new issue