Skip to content

Commit c7d15d3

Browse files
Identify caching issue for editor-ui (#1186)
closes #1181 --------- Co-authored-by: Dan Halson <[email protected]>
1 parent 4bb2f9a commit c7d15d3

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.devcontainer/devcontainer.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@
6161
"avraammavridis.vsc-react-documentation",
6262
"ofhumanbondage.react-proptypes-intellisense",
6363
"syler.sass-indented",
64-
"codezombiech.gitignore"
64+
"codezombiech.gitignore",
65+
"github.vscode-github-actions",
66+
"humao.rest-client"
6567
],
6668
"settings": {
6769
"terminal.integrated.defaultProfile.linux": "zsh",

.github/workflows/deploy.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,18 @@ jobs:
151151
REACT_APP_SENTRY_ENV: ${{ inputs.react_app_sentry_env }}
152152

153153
- name: Deploy site to S3 bucket
154-
run: aws s3 sync ./build/ s3://${{ secrets.AWS_S3_BUCKET }}/${{ needs.setup-environment.outputs.deploy_dir }} --endpoint ${{ secrets.AWS_ENDPOINT }}
154+
run: aws s3 sync ./build/ s3://${{ secrets.AWS_S3_BUCKET }}/${{ needs.setup-environment.outputs.deploy_dir }} --endpoint ${{ secrets.AWS_ENDPOINT }}
155155
env:
156156
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
157157
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
158158
AWS_REGION: ${{ secrets.AWS_REGION }}
159+
160+
- name: Purge Cloudflare cache
161+
run: |
162+
curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE_ID }}/purge_cache" \
163+
-H "Authorization: Bearer ${{ secrets.CLOUDFLARE_API_TOKEN }}" \
164+
-H "Content-Type: application/json" \
165+
--data '{"files":["${{ needs.setup-environment.outputs.public_url }}/web-component.html", "${{ needs.setup-environment.outputs.public_url }}/web-component.js"]}'
166+
env:
167+
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
168+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
3232
- Clear the redux store when the component unmounts (#1169)
3333
- Login to save now logs in and automatically saves (#1162)
3434
- Instructions panel heading (#1183)
35+
- Added cache purge on deployment (#1186)
3536

3637
### Fixed
3738

0 commit comments

Comments
 (0)