Skip to content

Commit bbc8a49

Browse files
chore: Migrate gsutil usage to gcloud storage (#1455)
1 parent 0521725 commit bbc8a49

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

deploy.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ for i in $EXAMPLES; do
4949
rm -rf dist .cache
5050
yarn build
5151
# Remove files in the example directory (but not sub-directories).
52-
gsutil -m rm gs://tfjs-examples/$EXAMPLE_NAME/*
52+
gcloud storage rm gs://tfjs-examples/$EXAMPLE_NAME/*
5353
# Gzip and copy all the dist files.
5454
# The trailing slash is important so we get $EXAMPLE_NAME/dist/.
55-
gsutil -m cp -Z -r dist gs://tfjs-examples/$EXAMPLE_NAME/
55+
gcloud storage cp --gzip-local-all --recursive dist gs://tfjs-examples/$EXAMPLE_NAME/
5656
cd ..
5757
done

interactive-visualizers/scripts/upload_gcp.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ echo 'current version: ' $PACKAGE_VERSION
3030
# remove the pre-built addon tarball if it already exist
3131
if [ "$1" = "for-publish" ]; then
3232
echo 'copying ...'
33-
gsutil -m cp $VISUALIZER_PACKAGE_DIR gs://$PACKAGE_HOST/$PACKAGE_VERSION
34-
gsutil -m cp $PLAYGROUND_PACKAGE_DIR gs://$PACKAGE_HOST/$PACKAGE_VERSION/playground
33+
gcloud storage cp $VISUALIZER_PACKAGE_DIR gs://$PACKAGE_HOST/$PACKAGE_VERSION
34+
gcloud storage cp $PLAYGROUND_PACKAGE_DIR gs://$PACKAGE_HOST/$PACKAGE_VERSION/playground
3535
fi

0 commit comments

Comments
 (0)