diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ae1305..5653929 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,28 +8,21 @@ on: [pull_request, push] jobs: build: - strategy: - matrix: - # and run on both Linux and Windows - os: [ubuntu-20.04, windows-latest] - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest steps: - name: checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: validate gradle wrapper - uses: gradle/wrapper-validation-action@v1 - - name: setup jdk 17 - uses: actions/setup-java@v1 + uses: gradle/actions/wrapper-validation@v3 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: - java-version: 17 - - name: make gradle wrapper executable - if: ${{ runner.os != 'Windows' }} - run: chmod +x ./gradlew + java-version: 21 + distribution: 'temurin' - name: build run: ./gradlew build - name: capture build artifacts - if: ${{ runner.os == 'Linux' }} # Only upload artifacts built from LTS java on one OS - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: Artifacts path: build/libs/ \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ecd7a43..dd114d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,13 +9,13 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - name: Set up JDK 17 - uses: actions/setup-java@v3 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: distribution: temurin - java-version: 17 + java-version: 21 - name: Make gradlew executable run: chmod +x ./gradlew @@ -24,7 +24,7 @@ jobs: run: ./gradlew clean build - name: Upload assets to GitHub, Modrinth and CurseForge - uses: Kir-Antipov/mc-publish@v3.2 + uses: Kir-Antipov/mc-publish@v3.3 with: modrinth-id: IxUlAAFe modrinth-featured: false