diff --git a/.github/workflows/frontDeploy.yml b/.github/workflows/frontDeploy.yml index a335e86..0e60d14 100644 --- a/.github/workflows/frontDeploy.yml +++ b/.github/workflows/frontDeploy.yml @@ -44,3 +44,10 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ env.AWS_REGION }} SOURCE_DIR: "./src/front/dist" + + - name: CloudFront Invalidadtion + env: + CLOUD_FRONT_ID: ${{ secrets.AWS_CLOUDFRONT_ID}} + run: | + aws cloudfront create-invalidation \ + --distribution-id $CLOUD_FRONT_ID --paths /* \ No newline at end of file