From 04d83243c8651abb5ca15616cc79347773e94a2f Mon Sep 17 00:00:00 2001 From: Mari023 <38946771+Mari023@users.noreply.github.com> Date: Thu, 23 May 2024 19:19:16 +0200 Subject: [PATCH] update actions --- .github/workflows/build.yml | 10 +++++----- .github/workflows/release.yml | 17 ++++++++--------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c74c3aa..f682e1d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,20 +11,20 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: validate gradle wrapper uses: gradle/wrapper-validation-action@v1 - - name: setup jdk 17 - uses: actions/setup-java@v3 + - name: setup jdk 21 + uses: actions/setup-java@v4 with: distribution: adopt - java-version: 17 + java-version: 21 - 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/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 997df6d..a96e070 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,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@v2 + - name: Set up JDK 21 + uses: actions/setup-java@v4 with: distribution: adopt - java-version: 17 + java-version: 21 - name: Grant execute permission for gradlew run: chmod +x gradlew @@ -35,12 +35,12 @@ jobs: runs-on: ubuntu-latest needs: build steps: - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: fabric path: download - - uses: Kir-Antipov/mc-publish@v3.3 + - uses: Kir-Antipov/mc-publish@995edadc13559a8b28d0b7e6571229f067ec7659 with: modrinth-id: EjH4M3L1 modrinth-token: ${{ secrets.MODRINTH_TOKEN }} @@ -48,12 +48,11 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} loaders: | fabric - quilt game-versions: | - 1.20.1 + 1.20.6 modrinth-dependencies: | fabric-api | depends - java: 17 + java: 21 version: ${{ github.event.release.tag_name }}-fabric name: ${{ github.event.release.tag_name }}-fabric files: download/!(*-@(dev|dev-shadow)).jar \ No newline at end of file