File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11FROM python:3.8-alpine
22
3- LABEL "com.github.actions.name" ="S3 Sync with CloudFront Cache invalidation"
3+ LABEL "com.github.actions.name" ="AWS S3 Sync with CloudFront Cache invalidation"
44LABEL "com.github.actions.description" ="Sync a directory to an AWS S3 bucket and invalidate the CloudFront cache"
55LABEL "com.github.actions.icon" ="refresh-cw"
66LABEL "com.github.actions.color" ="green"
77
88LABEL version="1.0"
9- LABEL repository="https://github.com/kersvers/s3-sync-action "
9+ LABEL repository="https://github.com/kersvers/s3-sync-with-cloudfront-invalidation "
1010LABEL homepage="https://kersvers.team"
1111LABEL maintainer="Robin van Wijngaarden <robin@kersvers.team>"
1212
Original file line number Diff line number Diff line change 3131 runs-on : ubuntu-latest
3232 steps :
3333 - uses : actions/checkout@v2
34- - uses : kersvers/s3-sync-action@master
34+ - uses : kersvers/s3-sync-with-cloudfront-invalidation@v1.0
3535 with :
3636 args : --acl public-read --follow-symlinks --delete
3737 env :
Original file line number Diff line number Diff line change 1- name : " S3 Sync with CloudFront Cache invalidation"
2- description : " Sync a directory to an AWS S3 repository and invalidate the CloudFront cache"
1+ name : " AWS S3 Sync with CloudFront Cache invalidation"
2+ description : " Sync a directory to an AWS S3 bucket and invalidate the CloudFront cache"
33author : kersvers
44runs :
55 using : docker
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ sh -c "aws s3 sync ${SOURCE_DIR:-.} s3://${AWS_S3_BUCKET}/${DEST_DIR} \
4949 --no-progress \
5050 ${ENDPOINT_APPEND} $* "
5151
52- sh -c " aws cloudfront create-invalidation --distribution-id ${DISTRIBUTION_ID} --paths " /* " --profile s3-sync-action"
52+ sh -c " aws cloudfront create-invalidation --distribution-id ${DISTRIBUTION_ID} --paths \ " /*\ " --profile s3-sync-action"
5353
5454# Clear out credentials after we're done.
5555# We need to re-run `aws configure` with bogus input instead of
You can’t perform that action at this time.
0 commit comments