Skip to content

Commit

Permalink
Update frontDeploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lth01 authored May 16, 2024
1 parent 824253d commit d7ac9f6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/frontDeploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit d7ac9f6

Please sign in to comment.