feat: install AWS CLI and update CloudFront distribution ID in CI/CD pipeline
This commit is contained in:
parent
c08b4ca645
commit
ff809a0a16
1 changed files with 6 additions and 1 deletions
|
|
@ -40,8 +40,13 @@ jobs:
|
|||
name: dist
|
||||
path: dist
|
||||
|
||||
- name: Install AWS CLI
|
||||
run: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y awscli || (apt-get update -y && apt-get install -y awscli)
|
||||
|
||||
- name: Deploy to S3
|
||||
run: aws s3 sync dist/ s3://${{ secrets.AWS_S3_BUCKET_BETA }} --delete
|
||||
|
||||
- name: Invalidate CloudFront
|
||||
run: aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_ID_BETA }} --paths "/*"
|
||||
run: aws cloudfront create-invalidation --distribution-id E2AYEICRZKJ9TM --paths "/*"
|
||||
|
|
|
|||
Loading…
Reference in a new issue