From 4b618df6d4d6e84c8e1fd5fe3847d01141f3d352 Mon Sep 17 00:00:00 2001 From: nea Date: Sun, 2 Jul 2023 14:24:08 +0200 Subject: Add gradle build GitHub Action --- .github/workflows/build.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 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..d794684 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,22 @@ +name: Run Gradle Build +on: [push, pull_request] +jobs: + gradle: + runs-on: ubuntu-latest + steps: + - name: Checkout source + uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + name: Setup Java + with: + distribution: temurin + java-version: 17 + - name: Setup Gradle + uses: gradle/gradle-build-action@v2 + - name: Execute Gradle build + run: ./gradlew build + - uses: actions/upload-artifact@v3 + name: Upload built mod JAR + with: + name: mod-jar + path: build/libs/*.jar \ No newline at end of file -- cgit