Skip to content

Commit

Permalink
chore: cloudfront 업로드 및 캐시 무효화 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
SaeWooKKang committed Jun 16, 2024
1 parent f917b81 commit c9b82b2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,18 @@ jobs:
- name: 빌드
run: |
yarn build
- name: AWS credentials 설정(aws resource접근)
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ap-northeast-2
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: S3 기존 파일들 전체 삭제 후 새로 업로드
run: |
aws s3 rm --recursive s3://next-blog-project
aws s3 cp ./out s3://next-blog-project/ --recursive
- name: Cloudfornt 캐시 무효화
run: aws cloudfront create-invalidation --distribution-id E12Q5DCOCOBVQC --paths "/*"

0 comments on commit c9b82b2

Please sign in to comment.