Skip to content

Commit 907e543

Browse files
authored
Don't remove subdirs in the example folder (#240)
1 parent 1b1c4b5 commit 907e543

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

deploy.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ for i in $EXAMPLES; do
4848
yarn
4949
rm -rf dist .cache
5050
yarn build
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.
51+
# Remove files in the example directory (but not sub-directories).
52+
gsutil -m rm gs://tfjs-examples/$EXAMPLE_NAME/*
53+
# Gzip and copy all the dist files.
54+
# The trailing slash is important so we get $EXAMPLE_NAME/dist/.
5455
gsutil -m cp -Z -r dist gs://tfjs-examples/$EXAMPLE_NAME/
5556
cd ..
5657
done

0 commit comments

Comments
 (0)