diff --git a/.github/workflows/reusable-deploy-job.yml b/.github/workflows/reusable-deploy-job.yml index c8240c8..791fe85 100644 --- a/.github/workflows/reusable-deploy-job.yml +++ b/.github/workflows/reusable-deploy-job.yml @@ -94,9 +94,16 @@ jobs: - name: Deploy Backends run: serverless deploy --stage ${{ inputs.target }} - - name: Invalidate CloudFront cache + - name: Invalidate CloudFront cache for Frontend continue-on-error: true run: | aws cloudfront create-invalidation \ --distribution-id ${{ secrets.AWS_FRONTEND_DISTRIBUTION_ID }} \ --paths "/*" + + - name: Invalidate CloudFront cache for Backend + continue-on-error: true + run: | + aws cloudfront create-invalidation \ + --distribution-id ${{ secrets.AWS_BACKEND_DISTRIBUTION_ID }} \ + --paths "/*"