Skip to content

Commit

Permalink
chore: aws cli을 직접 사용하여 캐시 무효화 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
WonJuneKim committed Nov 26, 2024
1 parent ba9cdce commit c280263
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ jobs:
AWS_REGION: ${{ secrets.AWS_REGION }}

- name: Invalidate CloudFront cache
uses: chetan/invalidate-cloudfront-action@v4
with:
distribution: ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }}
paths: "/*"
run: |
aws cloudfront create-invalidation \
--distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} \
--paths "/*"
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand Down

0 comments on commit c280263

Please sign in to comment.