Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions samples/upload-to-bucket.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2025 Google LLC
# Copyright 2026 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -12,6 +12,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# “Legacy: previously invoked from .github/workflows/release-please.yml.
# Removed when switching to release.yml/Firebase deploy. Kept for manual use.

# Copy contents of /dist to the Cloud Bucket.

#!/bin/bash
Expand Down Expand Up @@ -53,4 +56,4 @@ if (( ARCHIVE_COUNT > MAX_ARCHIVES )); then
OLDEST_ARCHIVE="${ARCHIVES[((MAX_ARCHIVES))]}" # Get the oldest archive
gcloud storage rm --recursive "$OLDEST_ARCHIVE"
echo "Deleted oldest archive: $OLDEST_ARCHIVE"
fi
fi
Loading