Skip to content

Commit

Permalink
Speed up CDN upload
Browse files Browse the repository at this point in the history
  • Loading branch information
p2004a committed Feb 14, 2024
1 parent d2aa31e commit 8971af2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ EOF

trap "rm -f $TMP_FILE" EXIT

rclone --config $TMP_FILE copy --exclude "redir.*" gen "r2:$R2_BUCKET_NAME/$COMMIT"
rclone --config $TMP_FILE copy --include "redir.*" --header-upload "Content-Type: text/plain" gen "r2:$R2_BUCKET_NAME/$COMMIT"
rclone --config $TMP_FILE copy --transfers=5 --exclude "redir.*" gen "r2:$R2_BUCKET_NAME/$COMMIT"
rclone --config $TMP_FILE copy --transfers=20 --include "redir.*" --header-upload "Content-Type: text/plain" gen "r2:$R2_BUCKET_NAME/$COMMIT"

if [ "$SET_LATEST" = "true" ]; then
printf "$COMMIT" | rclone --config $TMP_FILE --header-upload "Content-Type: text/plain" rcat "r2:$R2_BUCKET_NAME/HEAD"
Expand Down

0 comments on commit 8971af2

Please sign in to comment.