Skip to content

Setup guide ​

Caller workflow files ​

Reusable workflows must live under .github/workflows/ in this repository. Each project repository also keeps its own small caller files under .github/workflows/. The mods/, plugins/, modpacks/, and resourcepacks/ folders here contain organized examples and instructions.

CI ​

Use HMLabs-Gaming/release-workflows/.github/workflows/ci-java.yml@main for Java/Maven or Gradle projects, ci-packwiz.yml@main for Packwiz modpacks, and ci-resourcepack.yml@main for resource packs. After validating a release of this workflow repository, change @main to a stable tag such as @v1.

Release ​

A project release caller should run on release: types: [published] and call release-artifacts.yml. Configure:

  • project-slug
  • build-command
  • artifacts-json: JSON array of built source paths and optional loader names
  • Java/Go setup flags as needed

Optional Modrinth and CurseForge publishing can be enabled with modrinth-project-id and/or curseforge-project-id, plus version-type, loaders, and game-versions. Add secrets: inherit to the caller job and configure MODRINTH_TOKEN / CURSEFORGE_TOKEN in the consuming repository.

Hangar publishing is only for plugin projects and is controlled by hangar-project-slug, hangar-channel, hangar-files, and hangar-platform-dependencies. Add HANGAR_API_TOKEN as a repository Actions secret. Leave the slug or files configuration empty to skip the Hangar job. See platform publishing for the file mapping format.

When pinning a caller to @v1, also set workflow-ref: v1 so the naming script comes from the same tagged version.

Build commands are executable shell input. Only trusted maintainers should edit caller workflows or their build commands.

First-time repository configuration ​

  • Allow GitHub Actions to access reusable workflows from this public repository.
  • Configure minimal permissions on each project.
  • Add platform tokens only when the corresponding publisher job is configured.
  • Never pass publishing secrets to fork pull requests.
  • Keep existing project workflows until the migrated workflows pass a test release.
NOT AN OFFICIAL MINECRAFT PRODUCT. NOT APPROVED BY OR ASSOCIATED WITH MOJANG OR MICROSOFT.
© 2026 Henry Meyer.
Code licensed under MIT • Content under CC BY 4.0 • Icons & Logos All Rights Reserved.