diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7e9cc6a..c74c3aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,19 +11,20 @@ jobs: runs-on: ubuntu-latest steps: - name: checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: validate gradle wrapper uses: gradle/wrapper-validation-action@v1 - - name: setup jdk ${{ matrix.java }} - uses: actions/setup-java@v1 + - name: setup jdk 17 + uses: actions/setup-java@v3 with: + distribution: adopt java-version: 17 - name: make gradle wrapper executable run: chmod +x ./gradlew - name: build run: ./gradlew build - name: capture build artifacts - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: Artifacts path: build/libs/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9ab6ef..997df6d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,11 +8,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up JDK 17 - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: + distribution: adopt java-version: 17 - name: Grant execute permission for gradlew @@ -24,7 +25,7 @@ jobs: TAG: ${{ github.event.release.tag_name }} - name: Upload a fabric build - uses: actions/upload-artifact@v2.2.2 + uses: actions/upload-artifact@v3 with: path: build/libs/**.jar name: fabric @@ -39,7 +40,7 @@ jobs: name: fabric path: download - - uses: Kir-Antipov/mc-publish@v3.2 + - uses: Kir-Antipov/mc-publish@v3.3 with: modrinth-id: EjH4M3L1 modrinth-token: ${{ secrets.MODRINTH_TOKEN }} @@ -49,20 +50,10 @@ jobs: fabric quilt game-versions: | - 1.16.5 - 1.17 - 1.17.1 - 1.18 - 1.18.1 - 1.18.2 - 1.19 - 1.19.1 - 1.19.2 - 1.19.3 + 1.20.1 modrinth-dependencies: | fabric-api | depends java: 17 version: ${{ github.event.release.tag_name }}-fabric name: ${{ github.event.release.tag_name }}-fabric - files-primary: download/!(*-@(dev|dev-shadow)).jar - files-secondary: "" \ No newline at end of file + files: download/!(*-@(dev|dev-shadow)).jar \ No newline at end of file