Skip to content

Commit 8f4642b

Browse files
committed
debug log 추가
1 parent 1550065 commit 8f4642b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- develop
77
- main
88

9+
permissions:
10+
id-token: write
11+
contents: read
12+
913
jobs:
1014
deploy:
1115
runs-on: ubuntu-latest
@@ -62,12 +66,19 @@ jobs:
6266
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
6367
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
6468
aws-region: ap-northeast-2
69+
mask-aws-account-id: true
70+
71+
- name: Verify AWS credentials
72+
run: |
73+
aws sts get-caller-identity
74+
aws cloudfront list-distributions --max-items 1
6575
6676
- name: Deploy to S3
6777
run: aws s3 sync dist/ s3://${{ secrets.S3_BUCKET }}/$S3_PREFIX --delete
6878

6979
- name: Invalidate CloudFront cache
7080
run: |
81+
echo "Creating invalidation for distribution $CLOUDFRONT_ID"
7182
aws cloudfront create-invalidation \
7283
--distribution-id $CLOUDFRONT_ID \
7384
--paths "/*"

0 commit comments

Comments
 (0)