Add confirmation prompt before publishing release

Pauses and shows what will be published, requires y/Y to proceed.
If declined, exits gracefully with local files still available.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
njohnson 2026-01-11 16:12:28 -05:00
parent f9d9333bd7
commit 6b19ebb217

View File

@ -262,7 +262,31 @@ fi
echo_info "Release notes generated"
# =============================================================================
# Step 7: Create Git Tag (local)
# Step 7: Confirm before publishing
# =============================================================================
echo ""
echo "========================================"
echo "Ready to publish release $APP_VERSION"
echo "========================================"
echo ""
echo "This will:"
echo " - Create git tag: $APP_VERSION"
echo " - Create Gitea release"
echo " - Upload: $ZIP_NAME"
echo " - Upload: $LIBS_ZIP_NAME"
echo ""
read -p "Proceed with publishing? [y/N] " -n 1 -r
echo ""
if [[ ! $REPLY =~ ^[Yy]$ ]]; then
echo_warn "Aborted by user"
echo_info "Local files created in: $RELEASE_DIR/"
exit 0
fi
# =============================================================================
# Step 8: Create Git Tag (local)
# =============================================================================
echo_info "Creating git tag $APP_VERSION..."
@ -274,7 +298,7 @@ else
fi
# =============================================================================
# Step 8: Create Gitea Release
# Step 9: Create Gitea Release
# =============================================================================
echo_info "Creating Gitea release..."
@ -312,7 +336,7 @@ else
fi
# =============================================================================
# Step 9: Upload Assets
# Step 10: Upload Assets
# =============================================================================
echo_info "Uploading assets..."