From 02a032143a5360a6ee32db3741c866fbeac3d337 Mon Sep 17 00:00:00 2001 From: sanjay-ba <88319577+sanjay-ba@users.noreply.github.com> Date: Thu, 29 Aug 2024 12:55:10 +0530 Subject: [PATCH] Update main.yaml --- .github/workflows/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6b58b87..e3c1de8 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -35,3 +35,8 @@ jobs: run: | aws s3 sync ./public s3://www.knoxctlwebsite.accuknox.com --delete --debug + - name: Invalidate CloudFront + uses: chetan/invalidate-cloudfront-action@v2 + env: + DISTRIBUTION: ${{ secrets.DISTRIBUTION }} + PATHS: "/*"