From 0947bc0675dbc25dcc84dad3cb72acd158623802 Mon Sep 17 00:00:00 2001 From: expvintl Date: Tue, 20 Aug 2024 11:35:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0action?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci_build_1.21.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/ci_build_1.21.yml diff --git a/.github/workflows/ci_build_1.21.yml b/.github/workflows/ci_build_1.21.yml new file mode 100644 index 0000000..5f94a96 --- /dev/null +++ b/.github/workflows/ci_build_1.21.yml @@ -0,0 +1,25 @@ +name: Build1.21 + +on: push + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: 拉取项目 + uses: actions/checkout@v4 + - name: 初始化环境 + uses: actions/setup-java@v4 + with: + distribution: 'liberica' + java-version: '21' + - name: 初始化Gradle + uses: gradle/actions/setup-gradle@v4 + - name: 构建项目 + run: ./gradlew build + - name: 上传成品 + uses: actions/upload-artifact@v3 + with: + name: MCTools.jar + path: build/libs/MCTools-1.0.jar + retention-days: 16 \ No newline at end of file