diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 47d7e35..a4fd61d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,3 +18,10 @@ jobs: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: 'us-west-2' # optional: defaults to us-east-1 + - uses: chetan/invalidate-cloudfront-action@master + env: + DISTRIBUTION: ${{ secrets.CLOUDFRONT_DISTRIBUTION }} + PATHS: "/*" + AWS_REGION: "us-west-2" + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}