Skip to content

Commit

Permalink
chore: Optimize action
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryFan626 committed Nov 12, 2023
1 parent 6ed7ad8 commit 4772f49
Showing 1 changed file with 3 additions and 22 deletions.
25 changes: 3 additions & 22 deletions .github/workflows/release_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ jobs:
env:
RUNNER_OS: ${{ runner.os }}
JAVA_HOME: ${{ env.JAVA_HOME }}


- name: Copy JRE to static directory
run: |
Expand All @@ -84,23 +83,14 @@ jobs:
distribution: "temurin"
cache: "maven"

- name: Cache Yarn Dependencies
uses: actions/cache@v2
with:
path: |
~/.cache/yarn
node_modules
key: {{ runner.os }}-yarn-{{ hashFiles('**/yarn.lock') }}

- name: Restore Yarn Cache
uses: actions/cache@v2
with:
path: |
~/.cache/yarn
node_modules
key: {{ runner.os }}-yarn-{{ hashFiles('**/yarn.lock') }}
./node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
{{ runner.os }}-yarn-{{ runner.os }}-
${{ runner.os }}-yarn-
- name: Build FE Static
run: |
Expand Down Expand Up @@ -197,12 +187,3 @@ jobs:
"title": "${{ matrix.os }}-test-打包完成通知",
"text": "# ${{ matrix.os }}-test-打包完成通知\n ![bang](https://oss.sqlgpt.cn/static/bang100.gif)\n ### 任务id:[${{ github.run_id }}](https://github.com/chat2db/Chat2DB/actions/runs/${{ github.run_id }})\n ### 下载地址:[https://oss.sqlgpt.cn/test/99.0.${{ github.run_id }}/${{ matrix.os }}-Test${{ matrix.file_extension }}](https://oss.sqlgpt.cn/test/99.0.${{ github.run_id }}/${{ matrix.os }}-Test${{ matrix.file_extension }})"
}
- name: Save Yarn Cache
uses: actions/cache@v2
with:
path: |
~/.cache/yarn
node_modules
key: {{ runner.os }}-yarn-{{ hashFiles('**/yarn.lock') }}
save-key: {{ runner.os }}-yarn-{{ hashFiles('**/yarn.lock') }}

0 comments on commit 4772f49

Please sign in to comment.