ci(gitea): 更新构建测试工作流
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Failing after 3m18s

- 将 checkout动作升级到 v4 版本
- 添加设置 JDK 17 环境步骤
- 修改 Maven 构建命令,去掉 ./mvnw
- 移除 Docker 构建步骤
This commit is contained in:
Grand-cocoa 2025-03-18 18:19:19 +08:00
parent 913d129a34
commit bee67be58e

View File

@ -9,9 +9,14 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Git Repo - name: Checkout Git Repo
uses: https://git.alina-dace.info/actions/checkout@40a16ebeed7da831425b665e600750cb36b38d06 uses: https://git.alina-dace.info/actions/checkout@v4
- run: pwd - run: pwd
- run: chmod +x ./mvnw - name: Set up JDK 17
uses: https://git.alina-dace.info/actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: build - name: build
run: ./mvnw clean package -DskipTests=true -P prod run: mvn clean package -DskipTests=true -P prod
- run: docker build sakura-miki:latest - run: docker build sakura-miki:latest