From f63e05ea27d9cab9679650c2a0af84dae849f099 Mon Sep 17 00:00:00 2001 From: Knowledge Base Agent Date: Sat, 28 Feb 2026 17:23:46 +0800 Subject: [PATCH] =?UTF-8?q?SSH=E9=83=A8=E7=BD=B2=E5=88=B0micecola.top?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/deploy.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 0fed0cc..89ffd31 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -13,12 +13,19 @@ jobs: run: | echo "Checking out code..." + - name: Setup SSH key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan -H micecola.top >> ~/.ssh/known_hosts + - name: Deploy to server run: | - mkdir -p /www/wwwroot/kb-web-test/zhangqing + ssh -o StrictHostKeyChecking=no root@micecola.top "mkdir -p /www/wwwroot/kb-web-test/zhangqing" rsync -avz --delete \ --exclude='.git' \ --exclude='.gitea' \ --exclude='*.pyc' \ --exclude='__pycache__' \ - ./ /www/wwwroot/kb-web-test/zhangqing/ + ./ root@micecola.top:/www/wwwroot/kb-web-test/zhangqing/