File tree Expand file tree Collapse file tree
interactive-visualizers/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ..
5757done
Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ echo 'current version: ' $PACKAGE_VERSION
3030# remove the pre-built addon tarball if it already exist
3131if [ " $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
3535fi
You can’t perform that action at this time.
0 commit comments