commit 2b4424c703b4a50c2d44de064829a28a9aa39e16
parent cb7277d21a62838d70c4180a0896284caf5a5610
Author: Chris <chris@echoz.io>
Date: Wed, 3 Jun 2026 20:10:36 +0200
chore(ci): pass even if deleting something fails
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/production.yaml b/.github/workflows/production.yaml
@@ -24,6 +24,6 @@ jobs:
id_rsa=$(mktemp)
chmod 600 $id_rsa
echo "${{ secrets.SSH_KEY }}" > $id_rsa
- ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.SSH_TARGET }}" -- 'cd "${{ secrets.SSH_WEBROOT }}" && rm -vrf * .*'
+ ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.SSH_TARGET }}" -- 'cd "${{ secrets.SSH_WEBROOT }}" && rm -vrf * .*' || true
rsync --delete --chmod=D755,F644 -vrLe "ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" ./result/ "${{ secrets.SSH_TARGET }}:${{ secrets.SSH_WEBROOT }}"
ssh -i $id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null "${{ secrets.SSH_TARGET }}" cache-purge