From e3dbe69aa4797947de8e702e1ac272688b1d3ee2 Mon Sep 17 00:00:00 2001 From: Ryan Wang Date: Thu, 26 Oct 2023 11:35:45 +0800 Subject: [PATCH] chore: zip dist files before ssh deploy (#268) Signed-off-by: Ryan Wang --- .github/workflows/node.js.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 5dbe3f23..cfb653bd 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -49,6 +49,7 @@ jobs: - run: pnpm install - run: pnpm build + - run: cd build && zip -r -m build.zip . - name: Deploy uses: easingthemes/ssh-deploy@main @@ -60,3 +61,4 @@ jobs: REMOTE_PORT: ${{ secrets.SERVER_PORT }} REMOTE_USER: ${{ secrets.SERVER_USER }} TARGET: ${{ secrets.SERVER_TARGET }} + SCRIPT_AFTER: ${{ secrets.SCRIPT_AFTER }}