Skip to content

Commit

Permalink
Update gcs-deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
pattersonbl2 committed Apr 4, 2024
1 parent cb57e13 commit 9fdcf49
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .utils/gcs-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,15 @@

if [ -e version.json ]; then
mv version.json dist/__version__
gsutil cp dist/__version__ "gs://${EXTENSION_WORKSHOP_BUCKET_GCS}/__version__"
gsutil cp -a public-read dist/__version__ "gs://${EXTENSION_WORKSHOP_BUCKET_GCS}/__version__"
# __version__ JSON; short cache
gsutil \
-h "cache-control: max-age=${TEN_MINS}" \
-h "content-type: application/json" \
-h "$CSPSTATIC" \
-h "$ACAO" \
rsync \
-J \
-a public-read \
dist/_version_/ "gs://${EXTENSION_WORKSHOP_BUCKET_GCS}/__version__"
setmeta \
"gs://${EXTENSION_WORKSHOP_BUCKET_GCS}/__version__"

fi

Expand Down

0 comments on commit 9fdcf49

Please sign in to comment.