更新 .gitea/workflows/test.yaml

This commit is contained in:
2026-05-05 18:06:12 +08:00
parent 000b20b066
commit af2883edff

View File

@@ -29,8 +29,16 @@ jobs:
echo "=== Maven 版本 ==="
mvn -version
- name: 缓存 Maven 依赖
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: Maven 打包
run: mvn -B package --file pom.xml
run: mvn -B -Dmaven.repo.local=~/.m2/repository package --file pom.xml
- name: 准备部署文件
run: |