From 37f7ffd757591479c645fa6e6d0394900a74fbdd Mon Sep 17 00:00:00 2001 From: JohnBraham Date: Mon, 9 Nov 2026 13:24:59 +0000 Subject: [PATCH] Let the release workflow publish Minecraft 1.17.1 --- .github/maven-release/README.md | 4 ++-- .github/workflows/deploy-release.yml | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/maven-release/README.md b/.github/maven-release/README.md index 4c9ab7dd..825df08d 100644 --- a/.github/maven-release/README.md +++ b/.github/maven-release/README.md @@ -11,8 +11,8 @@ to MMD Maven before creating the GitHub release. If CurseForge has accepted the file but it isn't public yet, wait for approval. Start a new run with the recorded CurseForge file ID so it verifies that upload -without submitting the jar again. The release workflow currently covers Java 8 -Forge targets only. +without submitting the jar again. The release workflow sets Java 8 through +Minecraft 1.16.5 and Java 16 for Minecraft 1.17.1. ## Existing CurseForge releases diff --git a/.github/workflows/deploy-release.yml b/.github/workflows/deploy-release.yml index bc6247e1..17da83b6 100644 --- a/.github/workflows/deploy-release.yml +++ b/.github/workflows/deploy-release.yml @@ -71,10 +71,12 @@ jobs: fi mc=$(jq -er --arg v "$RELEASE_VERSION" '.releases[$v].branch | capture("^master-(?1\\.[0-9]+\\.[0-9]+)$").mc' .github/maven-release/releases.json) case "$mc" in - 1.10.2|1.12.2|1.13.2|1.14.4|1.15.2|1.16.5) ;; - *) echo "This publisher only handles the Java 8 Forge releases" >&2; exit 1 ;; + 1.10.2|1.12.2|1.13.2|1.14.4|1.15.2|1.16.5) java="Java 8" ;; + 1.17.1) java="Java 16" ;; + *) echo "Unsupported Minecraft version for this publisher: $mc" >&2; exit 1 ;; esac echo "minecraft=$mc" >> "$GITHUB_OUTPUT" + echo "java=$java" >> "$GITHUB_OUTPUT" echo "state=$state" >> "$GITHUB_OUTPUT" echo "RELEASE_WORK=$release_work" >> "$GITHUB_ENV" echo "Verified $RELEASE_VERSION for Minecraft $mc. Maven: $state." >> "$GITHUB_STEP_SUMMARY" @@ -112,7 +114,7 @@ jobs: game-version-filter: none loaders: forge environment: client | server - java: Java 8 + java: ${{ steps.preflight.outputs.java }} curseforge-dependencies: | 240967(required) 245586(required)