Skip to content

Commit 7479bb7

Browse files
committed
chore: Optimize action
1 parent b15576c commit 7479bb7

1 file changed

Lines changed: 2 additions & 22 deletions

File tree

.github/workflows/release_test.yml

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
java-version: "17"
4343
distribution: "temurin"
4444
java-package: "jre"
45-
architecture: ${{ matrix.arch == 'arm64' && 'aarch64' }}
45+
architecture: ${{ matrix.arch == 'arm64' && 'aarch64' || 'x64' }}
4646

4747
# 开放TLS
4848
- name: Enable TLS 1.0 and 1.1 in java.security
@@ -96,31 +96,11 @@ jobs:
9696
distribution: "temurin"
9797
cache: "maven"
9898

99-
# 从缓存中拿去前端依赖
100-
# - name: Cache node modules
101-
# uses: actions/cache@v3
102-
# env:
103-
# cache-name: cache-node-modules
104-
# with:
105-
# path: ./node_modules
106-
# key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
107-
# restore-keys: |
108-
# ${{ runner.os }}-build-${{ env.cache-name }}-
109-
# ${{ runner.os }}-build-
110-
# ${{ runner.os }}-
111-
112-
# 安装前端依赖
113-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
114-
name: Yarn install
115-
continue-on-error: true
116-
run: |
117-
cd chat2db-client
118-
yarn install --frozen-lockfile
119-
12099
# 打包Web前端资源
121100
- name: Build FE Static
122101
run: |
123102
cd chat2db-client
103+
yarn install --frozen-lockfile
124104
yarn run build:web:prod --app_version=99.0.${{ github.run_id }} --app_port=10822
125105
cp -r dist ../chat2db-server/chat2db-server-start/src/main/resources/static/front
126106
cp -r dist/index.html ../chat2db-server/chat2db-server-start/src/main/resources/thymeleaf/

0 commit comments

Comments
 (0)