Skip to content

Commit f163bd5

Browse files
committed
chore: Optimize action
1 parent f8f4b57 commit f163bd5

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/release_test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Build Test Client
33
on:
44
push:
55
# branches:
6-
# - "release_test"
6+
# - "release_test"
77

88
jobs:
99
release:
@@ -38,7 +38,7 @@ jobs:
3838
- name: Enable TLS 1.0 and 1.1 in java.security
3939
run: |
4040
if [[ "${{ runner.os }}" == "Windows" ]]; then
41-
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" $JAVA_HOME/conf/security/java.security
41+
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "$JAVA_HOME/conf/security/java.security"
4242
elif [[ "${{ runner.os }}" == "Linux" ]]; then
4343
sed -i "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" $JAVA_HOME/conf/security/java.security
4444
else
@@ -64,7 +64,6 @@ jobs:
6464
cache: "yarn"
6565
cache-dependency-path: chat2db-client/yarn.lock
6666

67-
6867
- name: Install Java and Maven
6968
uses: actions/setup-java@main
7069
with:
@@ -75,11 +74,11 @@ jobs:
7574
- name: Cache Yarn dependencies
7675
uses: actions/cache@v3
7776
with:
78-
path: '**/node_modules'
77+
path: "**/node_modules"
7978
key: yarn-${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
8079
restore-keys: |
8180
yarn-${{ runner.os }}-
82-
81+
8382
- name: Build FE Static
8483
run: |
8584
cd chat2db-client
@@ -88,7 +87,6 @@ jobs:
8887
cp -r dist ../chat2db-server/chat2db-server-start/src/main/resources/static/front
8988
cp -r dist/index.html ../chat2db-server/chat2db-server-start/src/main/resources/thymeleaf/
9089
91-
9290
- name: Build BE Static
9391
run: |
9492
mvn clean package -B '-Dmaven.test.skip=true' -f chat2db-server/pom.xml
@@ -118,6 +116,9 @@ jobs:
118116
with:
119117
package_root: "chat2db-client/"
120118
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
119+
mac_certs: ${{ secrets.mac_certs }}
120+
mac_certs_password: ${{ secrets.mac_certs_password }}
121+
skip_build: true
121122
args: >
122123
-c.appId=com.chat2db.test
123124
-c.productName=Chat2DB-Test

0 commit comments

Comments
 (0)