Skip to content
Snippets Groups Projects
Commit 2316da05 authored by gabriel klawitter's avatar gabriel klawitter Committed by GitHub
Browse files

ci: fix subdirectory upload to s3 (#1398)

parent 59f5eb4c
Branches
No related merge requests found
......@@ -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};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment