File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66 - develop
77 - main
88
9+ permissions :
10+ id-token : write
11+ contents : read
12+
913jobs :
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 "/*"
You can’t perform that action at this time.
0 commit comments