From 972bcb36355fddccd25e302f76eae1d9dace5e29 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 6 May 2024 22:47:31 +0200 Subject: [PATCH] automatically purge CF caches --- .forgejo/workflows/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml index 2f72bd2..628ed46 100644 --- a/.forgejo/workflows/main.yml +++ b/.forgejo/workflows/main.yml @@ -25,3 +25,8 @@ jobs: curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb echo "${{ secrets.ELLBOT_KEY }}" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa rsync -rv --delete -e 'ssh -o "ProxyCommand cloudflared access ssh --hostname %h" -o "StrictHostKeyChecking=no"' main/_site/ ellbot@ssh.ellpeck.de:/var/www/ellpeck + - name: Purge Cloudflare cache + uses: https://github.com/NathanVaughn/actions-cloudflare-purge@v3.1.0 + with: + cf_zone: ${{ secrets.CLOUDFLARE_ZONE }} + cf_auth: ${{ secrets.CLOUDFLARE_TOKEN }}