mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-07-03 23:12:20 +02:00
purge cloudflare cache after deploy
This commit is contained in:
parent
c204f7bbd4
commit
01a190dffc
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Deploy via SSH
|
name: Deploy
|
||||||
|
|
||||||
on:
|
on:
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
@ -8,10 +8,12 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
ARTIFACT_NAME: ${{ github.event.client_payload.artifact-name }}
|
ARTIFACT_NAME: ${{ github.event.client_payload.artifact-name }}
|
||||||
ARTIFACT_URL: ${{ github.event.client_payload.artifact-url }}
|
ARTIFACT_URL: ${{ github.event.client_payload.artifact-url }}
|
||||||
steps:
|
steps:
|
||||||
- uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
|
- name: Deploy via SSH
|
||||||
|
id: deploy
|
||||||
|
uses: appleboy/ssh-action@029f5b4aeeeb58fdfe1410a5d17f967dacf36262 # v1.0.3
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.SSH_HOST }}
|
host: ${{ secrets.SSH_HOST }}
|
||||||
username: ${{ secrets.SSH_USER }}
|
username: ${{ secrets.SSH_USER }}
|
||||||
@ -23,3 +25,9 @@ jobs:
|
|||||||
unzip -aDo "${{ env.ARTIFACT_NAME }}.zip" -d "${{ env.ARTIFACT_NAME }}"
|
unzip -aDo "${{ env.ARTIFACT_NAME }}.zip" -d "${{ env.ARTIFACT_NAME }}"
|
||||||
rsync -vR --delete "${{ env.ARTIFACT_NAME }}/" "${{ secrets.DESTINATION_DIR }}"
|
rsync -vR --delete "${{ env.ARTIFACT_NAME }}/" "${{ secrets.DESTINATION_DIR }}"
|
||||||
rm -rf "./${{ env.ARTIFACT_NAME }}.zip" "./${{ env.ARTIFACT_NAME }}"
|
rm -rf "./${{ env.ARTIFACT_NAME }}.zip" "./${{ env.ARTIFACT_NAME }}"
|
||||||
|
- name: Purge Cloudflare Cache
|
||||||
|
id: purge-cache
|
||||||
|
uses: NathanVaughn/actions-cloudflare-purge@f70c63827b539cf48eb3a29fdaa7547eca4dede4 #latest commit at the time
|
||||||
|
with:
|
||||||
|
cf_auth: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||||
|
cf_zone: ${{ secrets.CLOUDFLARE_ZONE_ID }}
|
||||||
|
Loading…
Reference in New Issue
Block a user