Skip to content

#210 publish beta builds to modrinth - #217

Merged
tpwalke2 merged 2 commits into
mainfrom
feature/tpwalke2/210-beta
Sep 12, 2026
Merged

tpwalke2 merged 2 commits into
mainfrom
feature/tpwalke2/210-beta

Conversation

@tpwalke2

Copy link
Copy Markdown
Owner

What

Adds beta publishing to Modrinth for releases/** branches and restricts branch-dispatch publishing to main/releases/** only (closes #210).

Why

publish.yml previously let any branch dispatch publish an alpha build and had no dedicated beta channel. releases/** branches (used for release-candidate hardening) should publish as beta, and publishing from arbitrary branches should be blocked.

Changes

  • .github/workflows/publish.yml:
    • New fail-fast guard step (before tests) that fails branch dispatches targeting anything other than main or releases/** (tag dispatches are exempt)
    • New "Publish beta to Modrinth" step for releases/** branch dispatches, running -PisBeta
    • "Publish alpha to Modrinth" step narrowed from any branch to main only
  • build.gradle: modrinth {} block gains an isBeta branch — versionType = "beta", version suffixed -beta (mirrors the existing -alpha/release branches)
  • AGENTS.md / agent-context/context/architecture.md: docs updated to describe the new alpha/beta/release matrix and the branch guard

Testing

  • No unit-testable logic changed (CI workflow + Gradle publish config only) — verified by inspection of the YAML/Gradle diff
  • Manual verification once merged: dispatch publish.yml against main (expect alpha), a releases/** branch (expect beta), and an unrelated branch (expect the guard step to fail before tests run)

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No unresolved review comments were identified.

Pull request overview

Adds guarded beta publishing to Modrinth for releases/** branches while preserving alpha and release publishing.

Changes:

  • Adds branch validation before tests.
  • Adds beta Modrinth publishing and version metadata.
  • Updates publishing documentation.
File summaries
File Description
build.gradle Configures beta versioning and Modrinth metadata.
AGENTS.md Documents the publishing matrix and guard.
agent-context/context/architecture.md Updates CI and publishing architecture documentation.
.github/workflows/publish.yml Restricts publishing branches and adds beta publishing.
Review details
  • Files reviewed: 3/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@tpwalke2
tpwalke2 merged commit e4d19dd into main Sep 12, 2026
2 checks passed
@tpwalke2
tpwalke2 deleted the feature/tpwalke2/210-beta branch September 12, 2026 11:42
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.

Ability to publish beta version to Modrinth

2 participants