From bee67be58eabbd3cd34df79117db19a5007c1058 Mon Sep 17 00:00:00 2001 From: Grand-cocoa <1075576561@qq.com49111108+grand-cocoa@users.noreply.github.com> Date: Tue, 18 Mar 2025 18:19:19 +0800 Subject: [PATCH] =?UTF-8?q?ci(gitea):=20=E6=9B=B4=E6=96=B0=E6=9E=84?= =?UTF-8?q?=E5=BB=BA=E6=B5=8B=E8=AF=95=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 checkout动作升级到 v4 版本 - 添加设置 JDK 17 环境步骤 - 修改 Maven 构建命令,去掉 ./mvnw - 移除 Docker 构建步骤 --- .gitea/workflows/build-test.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build-test.yaml b/.gitea/workflows/build-test.yaml index 902b3c2..211cc82 100644 --- a/.gitea/workflows/build-test.yaml +++ b/.gitea/workflows/build-test.yaml @@ -9,9 +9,14 @@ jobs: runs-on: ubuntu-latest steps: - 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: 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 - run: ./mvnw clean package -DskipTests=true -P prod + run: mvn clean package -DskipTests=true -P prod - run: docker build sakura-miki:latest