From 5080643293b5ddddad8e8184bcf1f5b7a824bae3 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 7 Oct 2021 15:11:59 +0800 Subject: [PATCH] Update node.js.yml --- .github/workflows/node.js.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 917efc2..960f3a9 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -20,3 +20,13 @@ jobs: node-version: 14.x - run: yarn - run: yarn build + + - name: Deploy + uses: easingthemes/ssh-deploy@main + env: + SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }} + ARGS: "-avzr --delete" + SOURCE: "./build/" + REMOTE_HOST: ${{ secrets.SERVER_HOST }} + REMOTE_USER: ${{ secrets.SERVER_USER }} + TARGET: "/data/wwwroot/docstest.halo.run"