Releasing
A release goes to two places: a GitHub release (built by CI from a tag) and the Steam Workshop (uploaded with hemtt publish from a machine running Steam).
1. Version and changelog
- Set the version in
addons/main/script_version.hpp(MAJOR,MINOR,PATCHLVL). Versions have three parts: there’s noBUILDthere, becausehemtt publishlooks the version up in the changelog, and its parser only acceptsx.y.z. - In
CHANGELOG.md, move the notes under[Unreleased]into a new## [x.y.z] - YYYY-MM-DDsection. It follows Keep a Changelog, and this section becomes the Workshop change note. - Commit, tag
vx.y.zand push the tag. The release workflow builds the mod and the extension and drafts a GitHub release with the zip.
2. The extension
hemtt publish packs whatever extension binaries are in the repository root, so put the release ones there first: yard_x64.dll, yard_x64.so and extras/wav2b64.exe. Either:
- run
./build-extension.sh(Linux, cross-compiles the Windows DLL), or - take them from the zip the release workflow built.
Warning
Without them the Workshop item has no extension, and YARD can’t connect to voice or compute signal.
3. Steam Workshop
The Workshop page is configured in .hemtt/publish.toml: title, visibility, tags, CBA as a required item, the description (workshop/description.md, converted from Markdown to Steam BBCode) and the images in workshop/.
-
Check everything first, without connecting to Steam:
hemtt publish --dry-runIt builds the release and prints the title, tags, images, description and change note that would be sent. Check that
.hemttout/releasecontainsyard_x64.dllandyard_x64.so. -
With Steam running and logged in to the account that owns the item:
hemtt publish
The first time, HEMTT asks to create the Workshop item and writes its ID to meta.cpp (there is no meta.cpp until then). Commit meta.cpp: later runs update that item. Steam keeps a new item hidden until its owner has accepted the Workshop legal agreement.
tags, required_items and additional_previews in publish.toml replace what’s on the Workshop page on every publish, so change them there, not on the page.
4. GitHub release
Publish the draft release the workflow created, with the changelog section as its notes.
Note
The DLLs aren’t BattlEye-signed or whitelisted yet, so servers running BattlEye block the extension.