简化部署流程:runner在本地直接复制
Deploy to Test / deploy (push) Failing after 1s

This commit is contained in:
Knowledge Base Agent
2026-02-28 16:07:36 +08:00
parent 5010552a80
commit 3e30fa0d5a
+2 -12
View File
@@ -13,22 +13,12 @@ jobs:
run: | run: |
echo "Checking out code..." 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: Create remote directory
run: |
ssh -o StrictHostKeyChecking=no kb_admin@micecola.top "mkdir -p /www/wwwroot/kb-web-test/zhangqing"
- name: Deploy to server - name: Deploy to server
run: | run: |
mkdir -p /www/wwwroot/kb-web-test/zhangqing
rsync -avz --delete \ rsync -avz --delete \
--exclude='.git' \ --exclude='.git' \
--exclude='.gitea' \ --exclude='.gitea' \
--exclude='*.pyc' \ --exclude='*.pyc' \
--exclude='__pycache__' \ --exclude='__pycache__' \
./ kb_admin@micecola.top:/www/wwwroot/kb-web-test/zhangqing/ ./ /www/wwwroot/kb-web-test/zhangqing/