Merge pull request #281 from rtfpessoa/fix-website

fix: Pass invalidation paths correctly
This commit is contained in:
Rodrigo Fernandes 2020-01-12 02:49:21 +00:00 committed by GitHub
commit 1c36b2986a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,4 +63,4 @@ jobs:
run: |
cd website
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