ci: use better s3 cmd
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
bdeshi 2024-05-17 09:59:30 +06:00
parent b78185ab37
commit bd172c68f3
Signed by: bdeshi
GPG Key ID: 410D03DA9A3468E0

View File

@ -17,7 +17,7 @@ steps:
- name: publish
image: amazon/aws-cli:2.15.50
commands:
- aws s3 cp --recursive ./dist s3://$${S3_BUCKET}/
- aws s3 sync --delete ./dist s3://$${S3_BUCKET}/
- aws cloudfront create-invalidation --distribution-id $${CLOUDFRONT_DISTRIBUTION} --paths '/*'
secrets:
- S3_BUCKET