diff --git a/scripts/full-release.sh b/scripts/full-release.sh index eb5f76b..1b60fd5 100755 --- a/scripts/full-release.sh +++ b/scripts/full-release.sh @@ -64,6 +64,10 @@ cargo smart-release --update-crates-index "${params[@]}" BIN_PATH="target/release/steamguard-cli" RAW_VERSION="$("$BIN_PATH" --version | cut -d " " -f 2)" +TAGGED_VERSION="$(git tag | grep "^v" | tail -n 1 | tr -d v)" +if [[ "v$RAW_VERSION" != "v$TAGGED_VERSION" ]]; then + echo "Version mismatch: $RAW_VERSION != $TAGGED_VERSION" +fi VERSION="v$RAW_VERSION" if [[ $DRY_RUN == false ]]; then