ci: fix subdirectory upload to s3 (#1398)

This commit is contained in:
gabriel klawitter
2020-07-14 16:38:49 +05:30
committed by GitHub
parent 59f5eb4c17
commit 2316da0523
+2 -2
View File
@@ -253,8 +253,8 @@ publish-s3-release:
- echo "uploading objects to https://${BUCKET}/${PREFIX}/${VERSION}"
- aws s3 sync ./artifacts/ s3://${BUCKET}/${PREFIX}/${VERSION}/
- echo "update objects at https://${BUCKET}/${PREFIX}/${EXTRATAG}"
- for file in ./artifacts/*; do
name="$(basename ${file})";
- find ./artifacts -type f | while read file; do
name="${file#./artifacts/}";
aws s3api copy-object
--copy-source ${BUCKET}/${PREFIX}/${VERSION}/${name}
--bucket ${BUCKET} --key ${PREFIX}/${EXTRATAG}/${name};