Add platform publish workflows (Modrinth, CurseForge)#167
Merged
Conversation
Publishing a GitHub release previously only fired the Discord webhook because this repo had no release:published workflows. Adds: - modrinth-publish.yml — builds with -Pmaster and uploads the jar to Modrinth (project NnkaZPqQ) - publish.yml — calls the shared BentoBoxWorld/.github reusable workflow to push the release-attached jar to CurseForge (project 1606770); Hangar skipped (addon is not published there) Platform secrets (MODRINTH_TOKEN, CURSEFORGE_TOKEN, HANGAR_API_KEY) are provided at the org level, matching Border/Challenges. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01AgLXH3e951W2wiUg2BU4WM
The addon is published on Hangar at tastybento/MagicCobblestoneGenerator, so set hangar_slug rather than skipping it. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01AgLXH3e951W2wiUg2BU4WM
Pin actions/checkout, actions/setup-java and cloudnode-pro/modrinth-publish to full-length commit SHAs to satisfy SonarCloud githubactions:S7637, matching the SHAs used across the other BentoBox addons. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01AgLXH3e951W2wiUg2BU4WM
|
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
Publishing a GitHub release for this addon only fired the Discord webhook — it never pushed the jar to Modrinth, CurseForge, or Hangar, because this repo had no
release: publishedworkflows (unlike Border, Challenges, etc.).This PR adds the two standard BentoBox publish workflows:
modrinth-publish.yml— builds with-Pmasterand uploadsMagicCobblestoneGenerator-<tag>.jarto Modrinth (projectNnkaZPqQ).publish.yml— calls the sharedBentoBoxWorld/.githubreusable workflow to push the release-attached jar to CurseForge (project1606770). Hangar is skipped (hangar_slug: "") since the addon isn't published there.Platform secrets (
MODRINTH_TOKEN,CURSEFORGE_TOKEN,HANGAR_API_KEY) are provided at the org level, matching the other addons — nothing to add per-repo.GitHub only runs
release:-triggered workflows if the workflow file exists on the default branch (develop). This must be merged intodevelopbefore the 2.10.0 release is published, or the platform pushes won't fire.🤖 Generated with Claude Code