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