Skip to content

Commit cd1d447

Browse files
committed
add cloudfront invalidation
1 parent 1932bc7 commit cd1d447

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/aws.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy to S3
1+
name: S3-sync
22

33
on:
44
push:
@@ -36,3 +36,9 @@ jobs:
3636
--exclude ".github/*" \
3737
--exclude "README.md" \
3838
--exclude "LICENSE"
39+
40+
- name: invalidate CloudFront cache
41+
run: |
42+
aws cloudfront create-invalidation \
43+
--distribution-id ${{ vars.CF_DISTRIBUTION_ID }} \
44+
--paths "/*"

0 commit comments

Comments
 (0)