From a2ffc71b487bed2759e0b443152be33f5c9d04e6 Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Tue, 13 Jan 2026 20:42:51 +0200 Subject: [PATCH 1/3] build with Java 8 --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d985e0e..917ea47 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK uses: actions/setup-java@v5 with: - java-version: 17 + java-version: 8 distribution: temurin cache: maven @@ -35,10 +35,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK 17 + - name: Set up JDK uses: actions/setup-java@v5 with: - java-version: 17 + java-version: 8 distribution: temurin cache: maven From b18ab50ad249aa176d8698c1e6378ad57e28b643 Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Tue, 13 Jan 2026 20:47:07 +0200 Subject: [PATCH 2/3] strip `v` prefix from release versions --- .github/workflows/ci.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 917ea47..de044c2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,8 +42,14 @@ jobs: distribution: temurin cache: maven + - name: Get version from release tag + run: | + TAG=${{ github.event.release.tag_name }} + echo "VERSION=${TAG#v}" >> $GITHUB_OUTPUT + id: version + - name: Set version from release tag - run: mvn -B versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false + run: mvn -B versions:set -DnewVersion=${{ steps.version.outputs.VERSION }} -DgenerateBackupPoms=false - name: Build and package Maven project run: mvn -B clean package --file pom.xml @@ -52,7 +58,7 @@ jobs: uses: cloudnode-pro/release-upload-asset@1.0.2 with: gh-token: ${{ github.token }} - files: target/AnvilUnlocker-${{ github.event.release.tag_name }}.jar; type=application/java-archive + files: target/AnvilUnlocker-${{ steps.version.outputs.VERSION }}.jar; type=application/java-archive - name: Upload to Modrinth uses: cloudnode-pro/modrinth-publish@v2 @@ -60,7 +66,7 @@ jobs: token: ${{ secrets.MODRINTH_TOKEN }} project: ${{ github.event.repository.custom_properties.modrinth_id }} name: ${{ github.event.release.name == github.event.release.tag_name && format('AnvilUnlocker {0}', github.event.release.name) || github.event.release.name }} - version: ${{ github.event.release.tag_name }} + version: ${{ steps.version.outputs.VERSION }} changelog: ${{ github.event.release.body }} loaders: |- paper @@ -74,4 +80,4 @@ jobs: 1.19.x 1.20.x 1.21.x - files: target/AnvilUnlocker-${{ github.event.release.tag_name }}.jar + files: target/AnvilUnlocker-${{ steps.version.outputs.VERSION }}.jar From 7d480765c950e42fc7c204d011280f11ff1e06e3 Mon Sep 17 00:00:00 2001 From: Zefir Kirilov Date: Tue, 13 Jan 2026 20:49:07 +0200 Subject: [PATCH 3/3] Revert "build with Java 8" This reverts commit a2ffc71b487bed2759e0b443152be33f5c9d04e6. --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de044c2..527fccc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,10 +16,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK + - name: Set up JDK 17 uses: actions/setup-java@v5 with: - java-version: 8 + java-version: 17 distribution: temurin cache: maven @@ -35,10 +35,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Set up JDK + - name: Set up JDK 17 uses: actions/setup-java@v5 with: - java-version: 8 + java-version: 17 distribution: temurin cache: maven