Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/reusable-deploy-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 "/*"