Reference
Release#
This page is for maintainers. Publishing is automated with GitHub Actions in
.github/workflows/ and GoReleaser (.goreleaser.yaml):
| Workflow | Runs on | What it does |
|---|---|---|
ci.yml |
Every push and pull request | Go tests and end-to-end tests on Linux, macOS and Windows; checks formatting; builds the website and checks every link; builds every release target |
pages.yml |
Pushes to main that change the docs |
Builds the website and publishes it to GitHub Pages |
release.yml |
Tags like v0.2.0 |
Tests, builds hkcli for 6 platforms, creates the GitHub release with downloads and checksums, and publishes the OpenClaw skill to ClawHub (through clawhub.yml) |
clawhub.yml |
Each release, or by hand | Publishes the OpenClaw skill in skills/hkcli to ClawHub |
plugin.yml |
Pushes and pull requests that touch the channel plugin | Builds and tests openclaw-plugin/, installs the packed plugin into OpenClaw, runs the end-to-end test against the fake Hike servers, and does a ClawHub dry run |
plugin-publish.yml |
By hand | Publishes the channel plugin @vinaycodeaxe/hkcli-channel to ClawHub |
plugin-verify.yml |
By hand, after a publish | Installs the published plugin from ClawHub into a clean OpenClaw and checks that it loads |
go install github.com/vinaycodeaxe/hkcli/cmd/hkcli@latest needs no publishing step: the Go
module proxy picks up each new tag from GitHub.
One-time setup#
- Website. Settings > Pages must have Source set to GitHub Actions (already done).
- ClawHub. The repository has the secret
CLAWHUB_TOKEN(a ClawHub API token) and the variableCLAWHUB_PUBLISHset totrue, so releases publish the skill. To replace the token, create a new one on clawhub.ai under Settings > API tokens and save it as theCLAWHUB_TOKENsecret in Settings > Secrets and variables > Actions. SetCLAWHUB_PUBLISHtofalseto make releases do only a dry run of the ClawHub step.
Releasing a version#
- Set the version in
internal/version/version.go, for example0.3.0. - In
CHANGELOG.md, move the[Unreleased]notes under a new## [0.3.0] - YYYY-MM-DDheading. - Commit, tag and push:
git commit -am "Release 0.3.0"
git tag v0.3.0
git push origin main v0.3.0
The release workflow refuses a tag that does not match the version in the code, and uses the
changelog section as the release notes. Downloads are named hkcli_<os>_<arch>.tar.gz (.zip
on Windows), so links to releases/latest/download/... always point at the newest version.
ClawHub numbers skill versions itself: 1.0.0 first, then the next patch version for every
publish. The workflow always sends the skill's category and topics, so each release adds a
skill version even when SKILL.md did not change.
To try a release build locally, install GoReleaser and run goreleaser release --snapshot --clean;
the archives land in dist/.
Publishing the skill by hand#
To publish a change to skills/hkcli without a new hkcli release, open Actions > clawhub >
Run workflow on GitHub and run it on main. Leave Preview only ticked to see what would be
published, untick it to publish.
With the ClawHub CLI (npm i -g clawhub, then clawhub login) instead:
clawhub skill publish ./skills/hkcli --slug hkcli --name hkcli --categories communication --topics hike,messaging,chat,cli
Skills on ClawHub are distributed under MIT-0, whatever license the repository uses.
Publishing the channel plugin#
The OpenClaw channel plugin in openclaw-plugin/ has its own version (in its package.json).
To release it:
- Bump
versioninopenclaw-plugin/package.json(and inpackage-lock.json), and updateopenclaw.build.openclawVersionif you built against a newer OpenClaw. - Push to
mainand wait forplugin.ymlto pass. - Open Actions > plugin-publish > Run workflow on
main, untick Preview only and add a short changelog. - When ClawHub has finished its checks, run Actions > plugin-verify to install the published plugin into a clean OpenClaw.
ClawHub checks every new version before it can be installed. The plugin is MIT licensed.
Website#
python -m pip install -r requirements-dev.txt
python scripts/build_site.py # writes dist/site and checks every link
python -m http.server -d dist/site 8000 # preview at http://localhost:8000/
The pages are the Markdown files in docs/; the sidebar order is set in
scripts/build_site.py. To use your own domain later, put the domain (for example
hkcli.dev) in a file named docs/CNAME, point the domain's DNS at GitHub Pages, and add the
domain under Settings > Pages.