Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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<<WEBGUI_CHANGELOG_EOF"
awk -v v="${{ steps.meta.outputs.version }}" '
$0 ~ ("^## " v) {f=1; print; next}
f && /^## / {exit}
f {print}
' CHANGELOG.md
echo "WEBGUI_CHANGELOG_EOF"
} >> "$GITHUB_OUTPUT"

- name: Set up Java
if: steps.check.outputs.release == 'true'
uses: actions/setup-java@v4
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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)
Expand All @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
Loading