From 06f9d99aba262e3d1d9f98c696690f7dc362ef9a Mon Sep 17 00:00:00 2001 From: MagmaBlock <61128045+MagmaBlock@users.noreply.github.com> Date: Fri, 19 Jul 2024 16:30:32 +0800 Subject: [PATCH] Create gradle.yml --- .github/workflows/gradle.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/gradle.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml new file mode 100644 index 0000000..10e2bf2 --- /dev/null +++ b/.github/workflows/gradle.yml @@ -0,0 +1,30 @@ +name: Build +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + steps: + - uses: actions/checkout@v4 + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + java-version: '17' + distribution: 'temurin' + - name: Setup Gradle + uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 # v3.1.0 + with: + gradle-version: '8.5' + - name: Build with Gradle 8.5 + run: gradle shadowJar + - name: capture build artifacts + uses: actions/upload-artifact@v2 + with: + name: Build Artifacts + path: build/libs/