Skip to content

Publish on PR merge, test on pull requests - #5

Merged
BreadMoirai merged 3 commits into
mainfrom
ci/publish-on-merge
Sep 17, 2026
Merged

BreadMoirai merged 3 commits into
mainfrom
ci/publish-on-merge

Conversation

@BreadMoirai

@BreadMoirai BreadMoirai commented Sep 17, 2026 •

Copy link
Copy Markdown
Owner

Merging this also publishes 1.1.1, which failed on #4 because the G_TOKEN secret is invalid.

Summary

  • Publish Mod now runs only when a pull request is merged (pull_request: closed + merged == true) and checks out the merge commit. Manual dispatch and running on every PR push are removed, and game tests no longer run during publish.
  • New Test workflow runs the client game tests on pull requests. Loom already runs each client under xvfb-run on CI; the workflow installs Mesa's software Vulkan driver because 26.3 can't get an OpenGL context under Xvfb and hangs without a Vulkan fallback. Runs time out after 60 minutes.
  • The GitHub release is created with the built-in GITHUB_TOKEN instead of the G_TOKEN secret, so it can't fail with "Bad credentials" when the personal token expires.
  • Actions moved to their Node 24 versions: actions/checkout@v6, actions/setup-java@v5, softprops/action-gh-release@v3.

Merge BreadMoirai/mc-publish#1 first so mc-publish@master also runs on Node 24.

- Publish Mod runs only when a pull request is merged (checks out the merge commit); tests no longer run there.
- New Test workflow runs game tests on pull requests.
- Create the GitHub release with GITHUB_TOKEN instead of the G_TOKEN secret.
- Move actions to their Node 24 versions (checkout v6, setup-java v5, action-gh-release v3).
Under Xvfb, 26.3's SDL window can't find a GLX visual, so the client falls back to Vulkan and
hangs when no Vulkan driver is installed. Fabric API's CI installs mesa-vulkan-drivers for the
same reason.
@BreadMoirai
BreadMoirai merged commit 446a646 into main Sep 17, 2026
1 check passed
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.

1 participant