From 7aa8111d82da41aed12950bff12ae6f6f934ddcc Mon Sep 17 00:00:00 2001 From: jloo-onfinality <95655566+jloo-onfinality@users.noreply.github.com> Date: Tue, 12 Apr 2022 15:12:44 +1200 Subject: [PATCH] test CloudFront create-invalidation --- .github/workflows/deploy-prod.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index f620b8d3b93..bcc71a3557e 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -24,4 +24,15 @@ jobs: aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ap-northeast-1 - run: aws s3 sync ./docs/.vuepress/dist s3://doc.subquery.network/ - - run: aws cloudfront create-invalidation --distribution-id E36FB3OLTA80GH --paths "/*" + - name: TEST Invalidate CloudFront + uses: chetan/invalidate-cloudfront-action@v2 + env: + DISTRIBUTION: ${{ secrets.DISTRIBUTION }} + PATHS: "/*" + AWS_REGION: "us-east-1" + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + - name: TEST Create invalidation on AWS Cloudfront + run: | + aws cloudfront create-invalidation --distribution-id E36FB3OLTA80GH --paths "/*" +