From eebb77900f2b5ada27824f9e4a00f1ab18d823eb Mon Sep 17 00:00:00 2001 From: Cole Helbling Date: Mon, 9 Jan 2023 10:02:14 -0800 Subject: [PATCH] upload_s3: sync already-existing dir to its destination (#167) Rather than uploading the same files to S3 twice, upload once and then sync the directory to its other destination. --- upload_s3.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload_s3.sh b/upload_s3.sh index bd454dd..b93cffa 100755 --- a/upload_s3.sh +++ b/upload_s3.sh @@ -34,4 +34,4 @@ for file in $(find "$GITHUB_SHA" -type f); do done aws s3 sync "$GITHUB_SHA"/ s3://"$AWS_BUCKET"/"$GITHUB_SHA"/ --acl public-read -aws s3 sync "$GITHUB_SHA"/ s3://"$AWS_BUCKET"/"$DEST"/ --acl public-read +aws s3 sync s3://"$AWS_BUCKET"/"$GITHUB_SHA"/ s3://"$AWS_BUCKET"/"$DEST"/ --acl public-read