From ac43d2fc1b2ad8b167062f3597bd3f54dc45875c Mon Sep 17 00:00:00 2001 From: z9130 <984661593@qq.com> Date: Mon, 16 Sep 2024 19:03:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/build-act?= =?UTF-8?q?ion.yaml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-action.yaml | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build-action.yaml b/.gitea/workflows/build-action.yaml index 7ff5f505..c0b6d99a 100644 --- a/.gitea/workflows/build-action.yaml +++ b/.gitea/workflows/build-action.yaml @@ -48,20 +48,21 @@ jobs: npm install -g pnpm echo "pnpm installed." - # - name: Install dependencies and build - # run: | - # cd pansoft-plrl - # echo "Installing dependencies..." - # pnpm install --no-frozen-lockfile - # echo "Dependencies installed." - # echo "Building project..." - # pnpm build --filter ${{ matrix.project }} - # echo "Project built." + - name: Install dependencies and build + run: | + cd pansoft-plrl + echo "Installing dependencies..." + pnpm install --no-frozen-lockfile + echo "Dependencies installed." + echo "Building project..." + pnpm build --filter ${{ matrix.project }} + echo "Project built." - name: Transfer files to target server run: | echo "Transferring files..." - sshpass -p "zxs123123" scp -o StrictHostKeyChecking=no -r pansoft-plrl/apps/* root@172.19.183.27:/opt/pansoft + cd pansoft-plrl + sshpass -p "zxs123123" scp -o StrictHostKeyChecking=no -r apps/${{ matrix.project }}/dist.zip root@172.19.183.27:/opt/pansoft echo "Files transferred." - name: Execute remote commands