Skip to content

Commit

Permalink
Merge pull request #98 from connext/fix/cf-distribution-invalidation
Browse files Browse the repository at this point in the history
add invalidation step
  • Loading branch information
wanglonghong authored Sep 18, 2023
2 parents 1031488 + 363746c commit b229bb8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

jobs:
terraform-deploy-assets:
env:
CF_DISTRIBUTION_ID: E1W1OZ8FEAK8E7
runs-on: ubuntu-latest
name: Deploy file to s3 + cloudfront
steps:
Expand All @@ -30,3 +32,6 @@ jobs:

- name: Terraform Deploy
run: terraform apply -auto-approve

- name: Invalidate Cloudfront Distribution
run: aws cloudfront create-invalidation --distribution-id $CF_DISTRIBUTION_ID --paths '/chaindata.json'

0 comments on commit b229bb8

Please sign in to comment.