mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-31 11:01:01 +00:00
ci: fix subdirectory upload to s3 (#1398)
This commit is contained in:
committed by
GitHub
parent
59f5eb4c17
commit
2316da0523
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user