diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2cfc818..100d4ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -44,6 +44,22 @@ jobs: echo "release=true" >> "$GITHUB_OUTPUT" fi + # Extract only the current version's section from CHANGELOG.md so each + # Modrinth version shows its own notes rather than the whole file. + - name: Extract changelog for this version + if: steps.check.outputs.release == 'true' + id: notes + run: | + { + echo "body<> "$GITHUB_OUTPUT" + - name: Set up Java if: steps.check.outputs.release == 'true' uses: actions/setup-java@v4 @@ -107,7 +123,7 @@ jobs: version-type: release loaders: fabric game-versions: '1.20.1' - changelog-file: CHANGELOG.md + changelog: ${{ steps.notes.outputs.body }} files: versions/1.20.1-fabric/build/libs/!(*-@(dev|sources|javadoc)).jar - name: Publish 1.21.1 Fabric to Modrinth @@ -122,7 +138,7 @@ jobs: version-type: release loaders: fabric game-versions: '1.21.1' - changelog-file: CHANGELOG.md + changelog: ${{ steps.notes.outputs.body }} files: versions/1.21.1-fabric/build/libs/!(*-@(dev|sources|javadoc)).jar - name: Publish 1.21.11 Fabric to Modrinth @@ -137,7 +153,7 @@ jobs: version-type: release loaders: fabric game-versions: '1.21.11' - changelog-file: CHANGELOG.md + changelog: ${{ steps.notes.outputs.body }} files: versions/1.21.11-fabric/build/libs/!(*-@(dev|sources|javadoc)).jar - name: Publish 1.21.1 NeoForge to Modrinth @@ -152,7 +168,7 @@ jobs: version-type: release loaders: neoforge game-versions: '1.21.1' - changelog-file: CHANGELOG.md + changelog: ${{ steps.notes.outputs.body }} files: versions/1.21.1-neoforge/build/libs/!(*-@(dev|sources|javadoc)).jar - name: Publish 1.21.11 NeoForge to Modrinth @@ -167,7 +183,7 @@ jobs: version-type: release loaders: neoforge game-versions: '1.21.11' - changelog-file: CHANGELOG.md + changelog: ${{ steps.notes.outputs.body }} files: versions/1.21.11-neoforge/build/libs/!(*-@(dev|sources|javadoc)).jar # Beta target (Minecraft 26). Kept out of the verify gate below and allowed @@ -186,7 +202,7 @@ jobs: version-type: beta loaders: neoforge game-versions: '26.2' - changelog-file: CHANGELOG.md + changelog: ${{ steps.notes.outputs.body }} files: versions/26.2-neoforge/build/libs/!(*-@(dev|sources|javadoc)).jar - name: Publish 26.1.2 NeoForge to Modrinth (beta) @@ -202,7 +218,7 @@ jobs: version-type: beta loaders: neoforge game-versions: '26.1.2' - changelog-file: CHANGELOG.md + changelog: ${{ steps.notes.outputs.body }} files: versions/26.1.2-neoforge/build/libs/!(*-@(dev|sources|javadoc)).jar # mc-publish can report success without actually creating a version (e.g. diff --git a/CHANGELOG.md b/CHANGELOG.md index f30d1a8..425ae35 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ - **Commands from the page.** A page can now run a Minecraft command, executed **as the player** — exactly as if they typed it in chat, so there is no privilege escalation. Commands are only accepted from the main frame of an origin the server declared trusted via `trustedCommandOrigins` in `config/webgui/server.json`; requests from any other origin (e.g. after a redirect or from an iframe) are dropped. The trusted-origin list is sent to the client on join and cleared on disconnect, so it never carries across servers. - `@webgui/react`: `runCommand(command)` and the `useRunCommand()` hook. +## 1.5.0 - 2026-07-24 + ### Added - `window.webgui.client` now includes more player data: `health`, `maxHealth`, `food`, `xpLevel`, `gamemode`, and a `look` object with `yaw`/`pitch`.