fix: simplify deploy for CentOS host runner (local rsync)
Deploy Wiki to Production / deploy (push) Failing after 26s

This commit is contained in:
zdh
2026-06-04 15:40:35 +08:00
parent 7256c79755
commit 00816f1c0d
+3 -7
View File
@@ -11,12 +11,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Install sshpass
run: apt-get update -qq && apt-get install -y -qq sshpass
- name: Deploy to server
run: |
sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" rsync -avz \
rsync -avz \
--exclude='.git' \
--exclude='.claude' \
--exclude='.gitea' \
@@ -25,8 +22,7 @@ jobs:
--exclude='*.pptx' \
--exclude='*.xlsx' \
--delete \
./ ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:/data/wiki/
./ /data/wiki/
- name: Reload nginx
run: |
sshpass -p "${{ secrets.DEPLOY_PASSWORD }}" ssh ${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }} "nginx -s reload"
run: nginx -s reload