From 3114775aa9a995ccfc60cfc3a16e4a19a8a28235 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Sun, 18 Jan 2026 09:40:42 +0000 Subject: [PATCH] fix: clean up stale files before deploy --- .github/workflows/deploy-demo-server.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/deploy-demo-server.yml b/.github/workflows/deploy-demo-server.yml index 518207b22..9e18be942 100644 --- a/.github/workflows/deploy-demo-server.yml +++ b/.github/workflows/deploy-demo-server.yml @@ -66,6 +66,9 @@ jobs: DEPLOY_HOST: ${{ secrets.DEMO_SERVER_HOST }} DEPLOY_USER: ${{ secrets.DEMO_SERVER_USER }} run: | + # Clean up any stale files from previous runs + ssh -o StrictHostKeyChecking=no ${DEPLOY_USER}@${DEPLOY_HOST} "rm -f /tmp/pulse-new; rm -rf /tmp/pulse-demo-test" || true + # Upload new binary scp -o StrictHostKeyChecking=no pulse ${DEPLOY_USER}@${DEPLOY_HOST}:/tmp/pulse-new