From 7479bb7dfd2081697ab6d87687810b18f5a8c395 Mon Sep 17 00:00:00 2001 From: Jerry Fan Date: Sun, 12 Nov 2023 21:05:04 +0800 Subject: [PATCH] chore: Optimize action --- .github/workflows/release_test.yml | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml index 2fa7a9258..a1d69d782 100644 --- a/.github/workflows/release_test.yml +++ b/.github/workflows/release_test.yml @@ -42,7 +42,7 @@ jobs: java-version: "17" distribution: "temurin" java-package: "jre" - architecture: ${{ matrix.arch == 'arm64' && 'aarch64' }} + architecture: ${{ matrix.arch == 'arm64' && 'aarch64' || 'x64' }} # 开放TLS - name: Enable TLS 1.0 and 1.1 in java.security @@ -96,31 +96,11 @@ jobs: distribution: "temurin" cache: "maven" - # 从缓存中拿去前端依赖 - # - name: Cache node modules - # uses: actions/cache@v3 - # env: - # cache-name: cache-node-modules - # with: - # path: ./node_modules - # key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} - # restore-keys: | - # ${{ runner.os }}-build-${{ env.cache-name }}- - # ${{ runner.os }}-build- - # ${{ runner.os }}- - - # 安装前端依赖 - - if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} - name: Yarn install - continue-on-error: true - run: | - cd chat2db-client - yarn install --frozen-lockfile - # 打包Web前端资源 - name: Build FE Static run: | cd chat2db-client + yarn install --frozen-lockfile yarn run build:web:prod --app_version=99.0.${{ github.run_id }} --app_port=10822 cp -r dist ../chat2db-server/chat2db-server-start/src/main/resources/static/front cp -r dist/index.html ../chat2db-server/chat2db-server-start/src/main/resources/thymeleaf/