From 8bfcca45fd2c08a879ba7425b1752aed2dd3a790 Mon Sep 17 00:00:00 2001 From: z9130 <984661593@qq.com> Date: Tue, 17 Sep 2024 12:26:19 +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 | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/build-action.yaml b/.gitea/workflows/build-action.yaml index 095ff2b2..b917ad14 100644 --- a/.gitea/workflows/build-action.yaml +++ b/.gitea/workflows/build-action.yaml @@ -37,15 +37,15 @@ jobs: git checkout test echo "Repository cloned and checked out to test branch." - # # Cache pnpm dependencies - # - name: Cache pnpm store - # uses: https://gitea.com/actions/cache@v3 - # id: pnpm-cache - # with: - # path: ~/.pnpm-store - # key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pansoft-plrl/pnpm-lock.yaml') }} - # restore-keys: | - # ${{ runner.os }}-pnpm-store- + # Cache pnpm dependencies + - name: Cache pnpm store + uses: https://gitea.com/actions/cache@v3 + id: pnpm-cache + with: + path: ~/.pnpm-store + key: ${{ runner.os }}-pnpm-store-${{ hashFiles('pansoft-plrl/pnpm-lock.yaml') }} + restore-keys: | + ${{ runner.os }}-pnpm-store- # Install dependencies and build - name: Install dependencies and build @@ -68,7 +68,7 @@ jobs: cd pansoft-plrl/apps/web-office echo "Local files in the directory:" ls - rsync -av --delete -e "ssh -o StrictHostKeyChecking=no -p ${{ vars.REMOTE_PORT }}" index.html ${{ vars.REMOTE_USER }}@${{ vars.REMOTE_HOST }}:/opt/test + rsync -av --delete -e "ssh -o StrictHostKeyChecking=no -p ${{ vars.REMOTE_PORT }}" dist/ ${{ vars.REMOTE_USER }}@${{ vars.REMOTE_HOST }}:/opt/test echo "Files transferred." # Execute remote commands