Skip to content

Add platform publish workflows (Modrinth, CurseForge)#167

Merged
tastybento merged 3 commits into
developfrom
feature/platform-publish-workflows
Jul 11, 2026
Merged

Add platform publish workflows (Modrinth, CurseForge)#167
tastybento merged 3 commits into
developfrom
feature/platform-publish-workflows

Conversation

@tastybento

Copy link
Copy Markdown
Member

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: published workflows (unlike Border, Challenges, etc.).

This PR adds the two standard BentoBox publish workflows:

  • modrinth-publish.yml — builds with -Pmaster and uploads MagicCobblestoneGenerator-<tag>.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 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.

⚠️ Merge before publishing 2.10.0

GitHub only runs release:-triggered workflows if the workflow file exists on the default branch (develop). This must be merged into develop before the 2.10.0 release is published, or the platform pushes won't fire.

🤖 Generated with Claude Code

tastybento and others added 2 commits July 11, 2026 15:40
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
Comment thread .github/workflows/modrinth-publish.yml Fixed
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
@sonarqubecloud

Copy link
Copy Markdown

@tastybento tastybento merged commit ce2c36e into develop Jul 11, 2026
4 checks passed
@tastybento tastybento deleted the feature/platform-publish-workflows branch July 11, 2026 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants