commit fc37578732355cb74607b6a9bbd611e1840ca192
parent cd49861e6cd38f87b0ad35e42b50f9313fcfcb56
Author: Echoz <github@echoz.io>
Date: Thu, 7 Dec 2023 21:11:56 +0100
ci: purge cache after uploading files
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
@@ -15,7 +15,9 @@ jobs:
- uses: jakejarvis/hugo-build-action@v0.105.0
- shell: bash
run: |
+ set -e
id_rsa=$(mktemp)
chmod 600 $id_rsa
echo "${{ secrets.SSH_KEY }}" > $id_rsa
rsync --delete -vre "ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ./public/ "${{ secrets.SSH_TARGET }}"
+ ssh -i $id_rsa -o StrictHostChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.SSH_TARGET }}" cache-purge
+\ No newline at end of file