Skip to content

Commit b8f9668

Browse files
committed
ci: publish: use 'aws s3 cp' to upload artifacts
'aws s3 sync' expects directories as arguments, but we are uploading a single file, so use 'aws s3 cp' instead. Also make sure the path ends with a slash for protection rules to apply.
1 parent 5075d92 commit b8f9668

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/package_core.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ jobs:
179179
aws-region: ${{ secrets.AWS_REGION }}
180180

181181
- name: Upload artifact
182-
run: aws s3 sync ${{ env.CORE_ARTIFACT }}.tar.bz2 s3://${{ secrets.S3_BUCKET }}
182+
run: aws s3 cp ${{ env.CORE_ARTIFACT }}.tar.bz2 s3://${{ secrets.S3_BUCKET }}/
183183

184184
- name: Prepare package index snippet
185185
run: ./extra/gen_package_index_json.sh

0 commit comments

Comments
 (0)