ci: 更新 Maven 构建配置
Some checks failed
Sakura-Miki-build / Explore-Gitea-Actions (push) Failing after 1m14s

- 移除 Set up Maven 步骤
- 使用 ./mvnw 替代 mvn命令
This commit is contained in:
Grand-cocoa 2025-03-18 18:39:51 +08:00
parent ae63e0f199
commit f16ed3e6fd

View File

@ -17,10 +17,11 @@ jobs:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
cache: maven cache: maven
- name: Set up Maven # - name: Set up Maven
uses: https://git.alina-dace.info/actions/setup-maven@v5 # uses: https://git.alina-dace.info/actions/setup-maven@v5
with: # with:
maven-version: 3.8.2 # maven-version: 3.8.2
- run: chmod +x ./mvnw
- name: build - name: build
run: mvn clean package -DskipTests=true -P prod run: ./mvnw clean package -DskipTests=true -P prod
- run: docker build sakura-miki:latest - run: docker build sakura-miki:latest