From b41320b2e29f860bdb20f803be45f48be9c98b7d Mon Sep 17 00:00:00 2001 From: Ten <32621403+TenDRILLL@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:14:31 +0300 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 398e392..edfd4cf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,18 +9,26 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: SSH Remote Commands + - name: CP files and Build uses: appleboy/ssh-action@v1.0.3 with: key: ${{ secrets.SSH_KEY }} host: ${{ secrets.SSH_IP }} username: ${{ secrets.SSH_USERNAME }} passphrase: ${{ secrets.SSH_PASSPHRASE }} - request_pty: true script: | cd /home/ten/node/headpat git pull origin uwu rm -rf dist mkdir -p dist/html npm run build + - name: Restart Headpat + uses: appleboy/ssh-action@v1.0.3 + with: + key: ${{ secrets.SSH_KEY }} + host: ${{ secrets.SSH_IP }} + username: ${{ secrets.SSH_USERNAME }} + passphrase: ${{ secrets.SSH_PASSPHRASE }} + request_pty: true + script: | sudo systemctl restart headpat