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.
This commit is contained in:
Cole Helbling 2023-01-09 10:02:14 -08:00 committed by GitHub
parent 31af68b23c
commit eebb77900f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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