File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,11 @@ for i in $EXAMPLES; do
46
46
47
47
echo " building ${EXAMPLE_NAME} ..."
48
48
yarn
49
+ rm -rf dist .cache
49
50
yarn build
50
- gsutil mkdir -p gs://tfjs-examples/$EXAMPLE_NAME
51
- gsutil mkdir -p gs://tfjs-examples/$EXAMPLE_NAME /dist
52
- gsutil -m cp dist/* gs://tfjs-examples/$EXAMPLE_NAME /dist
51
+ # Remove the example directory.
52
+ gsutil -m rm -r gs://tfjs-examples/$EXAMPLE_NAME
53
+ # Gzip and copy all the dist files. The trailing slash is important.
54
+ gsutil -m cp -Z -r dist gs://tfjs-examples/$EXAMPLE_NAME /
53
55
cd ..
54
56
done
55
-
56
- gsutil -m setmeta -h " Cache-Control:private" " gs://tfjs-examples/**.html"
57
- gsutil -m setmeta -h " Cache-Control:private" " gs://tfjs-examples/**.css"
58
- gsutil -m setmeta -h " Cache-Control:private" " gs://tfjs-examples/**.js"
You can’t perform that action at this time.
0 commit comments