mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-17 17:23:12 +01:00
actions: automatically purge CF caches
This commit is contained in:
parent
88de317ee2
commit
c5d8df7e8a
1 changed files with 12 additions and 2 deletions
14
.github/workflows/build.yml
vendored
14
.github/workflows/build.yml
vendored
|
@ -38,8 +38,13 @@ jobs:
|
|||
run: |
|
||||
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
|
||||
mkdir ~/.ssh && 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"' web/_site/. ellbot@ssh.ellpeck.de:/var/www/tinylifegame
|
||||
|
||||
rsync -rv --delete -e 'ssh -o "ProxyCommand cloudflared access ssh --hostname %h" -o "StrictHostKeyChecking=no"' web/_site/. ellbot@ssh.ellpeck.de:/var/www/tinylifegame
|
||||
- name: Purge Cloudflare cache
|
||||
uses: NathanVaughn/actions-cloudflare-purge@v3.1.0
|
||||
with:
|
||||
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
|
||||
cf_auth: ${{ secrets.CLOUDFLARE_TOKEN }}
|
||||
|
||||
docs:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
|
@ -73,3 +78,8 @@ jobs:
|
|||
curl -L --output cloudflared.deb https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && sudo dpkg -i cloudflared.deb
|
||||
mkdir ~/.ssh && 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"' docs/_site/. ellbot@ssh.ellpeck.de:/var/www/tinylifedocs
|
||||
- name: Purge Cloudflare cache
|
||||
uses: NathanVaughn/actions-cloudflare-purge@v3.1.0
|
||||
with:
|
||||
cf_zone: ${{ secrets.CLOUDFLARE_ZONE }}
|
||||
cf_auth: ${{ secrets.CLOUDFLARE_TOKEN }}
|
||||
|
|
Loading…
Reference in a new issue