Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ steps:
shopt -s nullglob
pdfs=(/workspace/src/static/pdfs/web_almanac_*.pdf)
if [[ ${#pdfs[@]} -gt 0 ]]; then
gsutil -m cp "${pdfs[@]}" gs://httparchive/almanac/ebooks/
gcloud storage -m cp "${pdfs[@]}" gs://httparchive/almanac/ebooks/
echo "Uploaded ${#pdfs[@]} PDF(s) to GCS"
else
echo "Warning: no ebooks found to upload"
Expand Down
2 changes: 1 addition & 1 deletion sql/lib/gcs_copy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Files are available at gs://httparchive/lib/*.js
# And via HTTPS at https://cdn.httparchive.org/lib/*.js (with caching)

gsutil cp sql/lib/*.js gs://httparchive/lib
gcloud storage cp sql/lib/*.js gs://httparchive/lib
2 changes: 1 addition & 1 deletion src/tools/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ if [[ "${ARTIFACT_ID}" != "null" ]]; then
for pdf in ${pdfs}
do
echo "Uploading $pdf"
gsutil cp "static/pdfs/${pdf}" "gs://httparchive/almanac/ebooks/${pdf}"
gcloud storage cp "static/pdfs/${pdf}" "gs://httparchive/almanac/ebooks/${pdf}"
done
fi

Expand Down
Loading