From a8093546b69d3c43f0acec5753a092afd896680a Mon Sep 17 00:00:00 2001 From: rory Date: Fri, 3 Nov 2023 18:35:18 -0700 Subject: [PATCH 1/2] Copy cloudflare cache busting from platformDeploy --- .github/workflows/deployExpensifyHelp.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/deployExpensifyHelp.yml b/.github/workflows/deployExpensifyHelp.yml index 4a53e75354c6..2b5a4bf59d9a 100644 --- a/.github/workflows/deployExpensifyHelp.yml +++ b/.github/workflows/deployExpensifyHelp.yml @@ -52,6 +52,14 @@ jobs: projectName: helpdot directory: ./docs/_site + - name: Setup Cloudflare CLI + run: pip3 install cloudflare + + - name: Purge Cloudflare cache + run: /home/runner/.local/bin/cli4 --delete hosts=["new.expensify.com"] /zones/:9ee042e6cfc7fd45e74aa7d2f78d617b/purge_cache + env: + CF_API_KEY: ${{ secrets.CLOUDFLARE_TOKEN }} + - name: Leave a comment on the PR uses: actions-cool/maintain-one-comment@de04bd2a3750d86b324829a3ff34d47e48e16f4b if: ${{ github.event_name == 'pull_request' }} From e7267d9b7ffb7f303bcd279f292853a3b93150af Mon Sep 17 00:00:00 2001 From: rory Date: Mon, 13 Nov 2023 13:12:01 -0800 Subject: [PATCH 2/2] Update host to help.expensify.com --- .github/workflows/deployExpensifyHelp.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deployExpensifyHelp.yml b/.github/workflows/deployExpensifyHelp.yml index 2b5a4bf59d9a..1c489904bfd7 100644 --- a/.github/workflows/deployExpensifyHelp.yml +++ b/.github/workflows/deployExpensifyHelp.yml @@ -56,7 +56,7 @@ jobs: run: pip3 install cloudflare - name: Purge Cloudflare cache - run: /home/runner/.local/bin/cli4 --delete hosts=["new.expensify.com"] /zones/:9ee042e6cfc7fd45e74aa7d2f78d617b/purge_cache + run: /home/runner/.local/bin/cli4 --delete hosts=["help.expensify.com"] /zones/:9ee042e6cfc7fd45e74aa7d2f78d617b/purge_cache env: CF_API_KEY: ${{ secrets.CLOUDFLARE_TOKEN }}