From 53ae5f877d8236a9f0d7986f74538b969054901e Mon Sep 17 00:00:00 2001 From: QuarkTree Date: Fri, 14 Mar 2025 16:51:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20Actions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 77716f9..41814fa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,28 +3,28 @@ # certain platforms or Java versions, and provides a first line of defence # against bad commits. -name: build +name: 构建 on: [pull_request, push] jobs: build: runs-on: ubuntu-24.04 steps: - - name: checkout repository + - name: 检查存储库 uses: actions/checkout@v4 - - name: validate gradle wrapper + - name: 验证 gradle 封装器 uses: gradle/actions/wrapper-validation@v4 - - name: setup jdk + - name: 设置 Jdk uses: actions/setup-java@v4 with: java-version: '21' distribution: 'microsoft' - - name: make gradle wrapper executable + - name: 使 gradle 封装程序可执行 run: chmod +x ./gradlew - - name: build + - name: 构建 run: ./gradlew build - - name: capture build artifacts - uses: christopherhx/gitea-upload-artifact@v4 + - name: 捕获构建工件 + uses: actions/upload-artifact@v3 with: name: Artifacts path: build/libs/ \ No newline at end of file