Add automated publish workflow for Modrinth and CurseForge - #26
Merged
Conversation
Run the "publish" workflow from the Actions tab to release the current mod_version: it builds every Stonecutter variant and uploads each release jar as its own version on Modrinth (betterhudfabric) and CurseForge (project 1375095) via mc-publish, selecting exactly the Minecraft versions each jar covers from supported-versions.json. - generate-matrices.sh gains a `publish` matrix (variant, java, per-jar game version list, and a human-readable range for the release name) - inputs: changelog, release channel (release/beta/alpha), and platform selection (both/modrinth/curseforge) - uploads run one variant at a time, oldest first, so the newest Minecraft build ends up as the most recent upload; a failure stops the remaining uploads - fails fast if a selected platform's token secret (MODRINTH_TOKEN / CURSEFORGE_TOKEN) is missing, since mc-publish would otherwise skip it silently - README release section updated accordingly Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gw2SqwSvrHSQcDDXSH2Vn9
Titles now read e.g. "BetterHUD 2.1.1 (Minecraft 1.21-1.21.5)", matching the convention of the existing uploads on Modrinth and CurseForge. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gw2SqwSvrHSQcDDXSH2Vn9
dsnsgithub
added a commit
that referenced
this pull request
Jul 8, 2026
* Update Minecraft dependency version range (#24) * Update requirements formatting in README.md * Add automated publish workflow for Modrinth and CurseForge (#26) * Add on-demand publish workflow for Modrinth and CurseForge Run the "publish" workflow from the Actions tab to release the current mod_version: it builds every Stonecutter variant and uploads each release jar as its own version on Modrinth (betterhudfabric) and CurseForge (project 1375095) via mc-publish, selecting exactly the Minecraft versions each jar covers from supported-versions.json. - generate-matrices.sh gains a `publish` matrix (variant, java, per-jar game version list, and a human-readable range for the release name) - inputs: changelog, release channel (release/beta/alpha), and platform selection (both/modrinth/curseforge) - uploads run one variant at a time, oldest first, so the newest Minecraft build ends up as the most recent upload; a failure stops the remaining uploads - fails fast if a selected platform's token secret (MODRINTH_TOKEN / CURSEFORGE_TOKEN) is missing, since mc-publish would otherwise skip it silently - README release section updated accordingly Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gw2SqwSvrHSQcDDXSH2Vn9 * Match existing release title format ("Minecraft" in the range) Titles now read e.g. "BetterHUD 2.1.1 (Minecraft 1.21-1.21.5)", matching the convention of the existing uploads on Modrinth and CurseForge. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Gw2SqwSvrHSQcDDXSH2Vn9 --------- Co-authored-by: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
















Summary
This PR adds a new GitHub Actions workflow that automates publishing BetterHUD to both Modrinth and CurseForge platforms. Previously, releases required manual uploads; now they can be published on-demand through the Actions tab with a single workflow dispatch.
Key Changes
New publish workflow (
.github/workflows/publish.yml): Automated release pipeline that:supported-versions.jsonEnhanced matrix generation script (
.github/scripts/generate-matrices.sh): Extended to compute a newpublishmatrix that includes:game_versions: Newline-separated list of Minecraft versions each variant supportsrange: Human-readable version range for release names (e.g., "1.21-1.21.5")Updated documentation (
README.md): Revised release instructions to reflect the new automated workflow, including:./gradlew modrinthBundleImplementation Details
mc-publishaction to handle platform-specific uploadsbuild.ymlhttps://claude.ai/code/session_01Gw2SqwSvrHSQcDDXSH2Vn9