Skip to content

Commit aee0a80

Browse files
committed
chore: Optimize action
1 parent 29c656a commit aee0a80

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

.github/workflows/release_test.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,26 @@ jobs:
6464
cache: "yarn"
6565
cache-dependency-path: chat2db-client/yarn.lock
6666

67+
6768
- name: Install Java and Maven
6869
uses: actions/setup-java@main
6970
with:
7071
java-version: "17"
7172
distribution: "temurin"
7273
cache: "maven"
7374

75+
- name: Cache Yarn dependencies
76+
uses: actions/cache@v3
77+
with:
78+
path: |
79+
.yarn/cache
80+
.yarn/unplugged
81+
.yarn/build-state.yml
82+
.yarn/install-state.gz
83+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
84+
restore-keys: |
85+
${{ runner.os }}-yarn-
86+
7487
- name: Build and Copy Artifacts
7588
run: |
7689
cd chat2db-client
@@ -81,7 +94,6 @@ jobs:
8194
mvn clean package -B '-Dmaven.test.skip=true' -f ../chat2db-server/pom.xml
8295
mkdir -p versions/99.0.${{ github.run_id }}/static
8396
echo "99.0.${{ github.run_id }}" > versions/version
84-
cp -r versions/version ./versions/
8597
cp chat2db-server/chat2db-server-start/target/chat2db-server-start.jar chat2db-client/versions/99.0.${{ github.run_id }}/static/
8698
8799
- name: Prepare Build Electron

0 commit comments

Comments
 (0)