Skip to content

Commit

Permalink
test CloudFront create-invalidation
Browse files Browse the repository at this point in the history
  • Loading branch information
jloo-onfinality authored Apr 12, 2022
1 parent c023ef7 commit 7aa8111
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/*"

0 comments on commit 7aa8111

Please sign in to comment.