Upload item.json files to S3 during build

This commit is contained in:
Andrew Miner
2017-07-22 19:32:09 -07:00
parent 46d83c363d
commit 6b916c3234
+3 -2
View File
@@ -36,6 +36,7 @@ GZIP="--add-header=content-encoding:gzip"
CMD="sync $SOURCE_DIR $TARGET_DIR -r -F -P $HEADERS --stop-on-error --exclude=*" CMD="sync $SOURCE_DIR $TARGET_DIR -r -F -P $HEADERS --stop-on-error --exclude=*"
echo "Preparing to upload to S3..." echo "Preparing to upload to S3..."
s3cmd $CMD -m 'image/png' --include="*.png" || exit 1 s3cmd $CMD -m 'image/png' --include="*.png" || exit 1
s3cmd $CMD $GZIP -m 'text/plain' --include="*.cg" || exit 1 s3cmd $CMD $GZIP -m 'text/plain' --include="*.cg" || exit 1
s3cmd $CMD $GZIP -m 'application/json' --include="*.json" || exit 1
echo "S3 Upload Complete" echo "S3 Upload Complete"