diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index c4faa9d..6a9bef5 100755 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -38,7 +38,8 @@ jobs: username: ${{ vars.YUYUN_USER }} password: ${{ secrets.SERVER_ROOT_PASSWORD }} script: | - pkill -f HttpServer || true + pgrep -f HttpServer | xargs -r kill -s 9 + exit 0 - name: Copy files to server uses: appleboy/scp-action@v0.1.7 with: