From 9a43d456f69cae7ec23f7532d7c6c89bf5751eb5 Mon Sep 17 00:00:00 2001 From: maru Date: Thu, 25 Apr 2024 21:36:34 -0400 Subject: [PATCH] Update deploy job --- .github/workflows/deploy.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index fcf0ec03a0a..27231533608 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -31,3 +31,13 @@ jobs: run: | rsync --del --no-times --checksum -vrm dist/* ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.DESTINATION_DIR }} ssh -t ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "~/prmanifest --inpath ${{ secrets.DESTINATION_DIR }} --outpath ${{ secrets.DESTINATION_DIR }}/manifest.json" + - name: Purge Cloudflare Cache + if: github.event_name == 'push' && github.ref_name == github.event.repository.default_branch + uses: NathanVaughn/actions-cloudflare-purge@v3.1.0 + with: + cf_auth: ${{ secrets.CLOUDFLARE_API_TOKEN }} + cf_zone: ${{ secrets.CLOUDFLARE_ZONE_ID }} + files: | + https://pokerogue.net/ + https://pokerogue.net/index.html + https://pokerogue.net/manifest.json \ No newline at end of file