From 7506db5d8019f41769c95be04fe0a80fa7b52b9c Mon Sep 17 00:00:00 2001 From: protonchang <2095341+protonchang@users.noreply.github.com> Date: Thu, 11 Jul 2024 14:02:48 +0800 Subject: [PATCH] Fix invalidation path --- .github/workflows/prod_deploy.yml | 2 +- .gitignore | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/prod_deploy.yml b/.github/workflows/prod_deploy.yml index fb20ce1..1822c2a 100644 --- a/.github/workflows/prod_deploy.yml +++ b/.github/workflows/prod_deploy.yml @@ -36,4 +36,4 @@ jobs: run: | aws s3 rm --recursive s3://${{ secrets.BUCKET_NAME }} aws s3 cp --recursive ./dist/ s3://${{ secrets.BUCKET_NAME }} - aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_ID }} --paths /* + aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_ID }} --paths "/*" diff --git a/.gitignore b/.gitignore index bc8a153..79aadc7 100644 --- a/.gitignore +++ b/.gitignore @@ -122,6 +122,7 @@ dist # Stores VSCode versions used for testing VSCode extensions .vscode-test +.vscode # yarn v2 .yarn/cache