fix: Pass invalidation paths correctly

This commit is contained in:
Rodrigo Fernandes 2020-01-12 02:48:55 +00:00
parent de3d404dfe
commit f89c3481a7
No known key found for this signature in database
GPG key ID: 67157D2E3D4258B4

View file

@ -63,4 +63,4 @@ jobs:
run: | run: |
cd website cd website
aws s3 sync --region eu-west-1 --delete . s3://diff2html.xyz --metadata-directive REPLACE --cache-control max-age=31557600 aws s3 sync --region eu-west-1 --delete . s3://diff2html.xyz --metadata-directive REPLACE --cache-control max-age=31557600
aws cloudfront create-invalidation --region eu-west-1 --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} --paths '/index.html /demo.html' aws cloudfront create-invalidation --region eu-west-1 --distribution-id ${{ secrets.AWS_CF_DISTRIBUTION_ID }} --paths /index.html /demo.html /sitemap.xml /robots.txt