feat: install AWS CLI and update CloudFront distribution ID in CI/CD pipeline
Some checks failed
Beta CI/CD Pipeline / build-and-test (push) Successful in 1m4s
Beta CI/CD Pipeline / deploy-beta (push) Failing after 6s

This commit is contained in:
vickytechkey 2026-09-05 15:14:16 +05:30
parent c08b4ca645
commit ff809a0a16

View file

@ -40,8 +40,13 @@ jobs:
name: dist name: dist
path: 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 - name: Deploy to S3
run: aws s3 sync dist/ s3://${{ secrets.AWS_S3_BUCKET_BETA }} --delete run: aws s3 sync dist/ s3://${{ secrets.AWS_S3_BUCKET_BETA }} --delete
- name: Invalidate CloudFront - 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 "/*"