update release script
This commit is contained in:
parent
5e24031719
commit
a8d3f3fc99
1 changed files with 14 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue