Skip to content

Commit

Permalink
add invalidate cache to cloudfront
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomontero committed May 10, 2024
1 parent ba01fbe commit 15960d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/reusable-publish-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ jobs:
aws s3 cp build/installer-manifest.json s3://${{ secrets.AWS_S3_BUCKET }}/particle-cli/installer/manifest.json \
--cache-control "public, max-age=0"
# invalidate cloudfront cache
- name: Invalidate Cloudfront manifest cache
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_CLOUDFRONT_BINARIES_ID }} --paths -paths "/particle-cli/manifest.json" "/particle-cli/installer/manifest.json" "/particle-cli/installer/win32/ParticleCLISetup.exe"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 15960d4

Please sign in to comment.