From 241049a08ab82870b7fd6913b9d99339c655c382 Mon Sep 17 00:00:00 2001 From: PoolloverNathan Date: Tue, 7 Feb 2023 17:58:54 +0000 Subject: [PATCH] Set up automatic building This commit adds multiple actions to build.yml that download java 17, build the mod, and upload the jars to Github Actions. --- .github/workflows/build.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c828db0..f5738da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,8 +5,23 @@ on: pull_request: jobs: validation: - name: "Gradle Wrapper Validation" + name: "Build" runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: gradle/wrapper-validation-action@v1 + - name: Checkout + uses: actions/checkout@v3 + - name: Validate Gradle wrapper + uses: gradle/wrapper-validation-action@v1 + - name: Install Java 17 + uses: actions/setup-java@v3 + with: + java-version: 17 # Can be more specific if neccesary + distribution: temurin + - name: Build + run: ./gradlew build + - name: Upload jars + uses: actions/upload-artifact@v3 + with: + name: jars + path: build/libs + if-no-files-found: warn