fix: simplify deploy for CentOS host runner (local rsync)
Deploy Wiki to Production / deploy (push) Failing after 26s
Deploy Wiki to Production / deploy (push) Failing after 26s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user