From a32a42ca861d78f5e2083f69b18d4f051f72fe79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=8F=E6=B2=AB=E8=8A=B1=E7=81=ABzzz?= Date: Sat, 14 Oct 2023 21:20:02 +0800 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a404cdf --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,38 @@ +name: b-main Gradle - Build + +on: + push: + branches: [ main ] + +env: + TZ: Asia/Shanghai + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout Source + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3.9.0 + with: + java-version: '17' + distribution: 'zulu' + + - name: Build with Gradle + run: ./gradlew build + + - name: Upload Build Target + uses: actions/upload-artifact@v3.1.1 + with: + name: "CatSero-Artifact" + path: build/ + + - name: Upload Build Jar + uses: actions/upload-artifact@v3.1.1 + with: + name: "CatSero-Jar" + path: build/libs/*.jar