fix full release script so that version bumps are actually respected

This commit is contained in:
Carson McManus 2021-11-14 11:44:29 -05:00
parent 17a4ebe813
commit e6f75fa5aa

View file

@ -39,15 +39,13 @@ This will do everything needed to release a new version:
- upload artifacts to a new release on github - upload artifacts to a new release on github
""" """
if [ "$DRY_RUN" = true ]; then if [ "$DRY_RUN" = true ]; then
echo "This is a dry run, nothing will be done. Artifacts will be built, but not published." 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 else
echo "This is not a dry run. This is the real deal!" echo "This is not a dry run. This is the real deal!"
fi fi
echo "Press any key to continue..." echo "Press any key to continue..."
read -n 1 -s -r read -n 1 -s -r
cargo build --release
params=() params=()
if [[ $DRY_RUN == false ]]; then if [[ $DRY_RUN == false ]]; then
params+=(--execute) params+=(--execute)
@ -60,6 +58,8 @@ if [[ $SKIP_CRATE_PUBLISH == true ]]; then
fi fi
cargo smart-release --update-crates-index "${params[@]}" cargo smart-release --update-crates-index "${params[@]}"
cargo build --release
./scripts/package-deb.sh ./scripts/package-deb.sh
BIN_PATH="target/release/steamguard-cli" BIN_PATH="target/release/steamguard-cli"