From 3bfcbaa190cc02a49adb04fc7aa6682f66f1b4ab Mon Sep 17 00:00:00 2001 From: Josh-Heaps Date: Sat, 13 Jun 2026 21:33:53 -0600 Subject: [PATCH] change deploy --- .github/workflows/deploy.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 49a282e..f3a189f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -63,7 +63,9 @@ jobs: - name: Rsync to server run: | - rsync -az --delete -e "ssh -p ${{ secrets.SSH_PORT || 22 }} -i ~/.ssh/id_rsa" \ + # --exclude chess-data: never let --delete remove the learned-engine training + # data, which lives in the deploy dir unless ChessEngine__WeightsPath is set. + rsync -az --delete --exclude 'chess-data' -e "ssh -p ${{ secrets.SSH_PORT || 22 }} -i ~/.ssh/id_rsa" \ publish/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.TARGET_DIR }}/ - name: Reload and restart service