Skip to content

Commit be5a6d5

Browse files
committed
add cf invalidation
1 parent 4205741 commit be5a6d5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,11 @@ jobs:
3838
AWS_REGION: "us-west-1" # optional: defaults to us-east-1
3939
SOURCE_DIR: "artifact" # optional: defaults to entire repository
4040
DEST_DIR: products/optimole-wp/latest
41+
- name: Clear Cloudfront Cache
42+
uses: chetan/invalidate-cloudfront-action@v2
43+
env:
44+
DISTRIBUTION: ${{ secrets.API_DIST_ID }}
45+
PATHS: "/download/optimole/*"
46+
AWS_REGION: "us-east-1"
47+
AWS_ACCESS_KEY_ID: ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }}
48+
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }}

0 commit comments

Comments
 (0)