From a27128eda1d07f8697671b1b6869a4c4c2c72d61 Mon Sep 17 00:00:00 2001 From: kyrptonaught Date: Mon, 29 Jan 2024 20:14:26 -0500 Subject: [PATCH] Update workflow --- .github/workflows/build.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df5f2cd..719c3ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,30 +8,27 @@ on: [push] jobs: build: - strategy: - matrix: - # Use these Java versions - java: [ - 17, # Current Java LTS & minimum supported by Minecraft - ] runs-on: ubuntu-latest + steps: - - name: checkout repository - uses: actions/checkout@v3 - - name: validate gradle wrapper - uses: gradle/wrapper-validation-action@v1 - - name: setup jdk ${{ matrix.java }} - uses: actions/setup-java@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 with: - java-version: ${{ matrix.java }} - distribution: 'temurin' + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '17' + + - name: validate gradle wrapper + uses: gradle/wrapper-validation-action@v2 + - name: make gradle wrapper executable run: chmod +x ./gradlew + - name: build run: ./gradlew build + - name: capture build artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: Artifacts path: build/libs/