From d7ac9f6f5cb3f13bcf6371906bf8299bd8c645ad Mon Sep 17 00:00:00 2001 From: lth01 Date: Thu, 16 May 2024 14:18:09 +0900 Subject: [PATCH] Update frontDeploy.yml --- .github/workflows/frontDeploy.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/frontDeploy.yml b/.github/workflows/frontDeploy.yml index 80be0d4..ba61df7 100644 --- a/.github/workflows/frontDeploy.yml +++ b/.github/workflows/frontDeploy.yml @@ -44,10 +44,12 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_REGION: ${{ env.AWS_REGION }} SOURCE_DIR: "./src/front/dist" - - - name: CloudFront Invalidadtion + + - name: Invalidate CloudFront + uses: chetan/invalidate-cloudfront-action@master env: - CLOUD_FRONT_ID: ${{ secrets.AWS_CLOUDFRONT_ID}} - run: | - aws cloudfront create-invalidation \ - --distribution-id $CLOUD_FRONT_ID --paths /* + PATHS: '/*' + AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} + AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + AWS_REGION: 'ap-northeast-2' + DISTRIBUTION: ${{ secrets.AWS_CLOUDFRONT_ID }}