Files
chainbase-labs__agentkey/.github
lxcong 4d3f87b951 ci: auto-publish skill to ClawHub on release tag (#59)
## What

Adds a `publish-clawhub` job to `.github/workflows/release-please.yml`
so that whenever release-please cuts a stable `vX.Y.Z` release, the
skill is automatically published to ClawHub (`chainbase/agentkey`).

## How it works

- **Trigger:** gated on `needs.release-please.outputs.release_created ==
'true'` — the same gate as the existing `publish-skill-asset` job. Only
fires for real stable releases (not plain commits, not pre-releases).
- **Auth:** `clawhub login --no-browser --token "$CLAWHUB_TOKEN"` using
the new `CLAWHUB_TOKEN` repo secret.
- **CLI pinned** to `clawhub@0.18.0` for reproducible publishes.
- **Version** derived from the release tag (`v1.9.0` → `1.9.0`).
- **Changelog** auto-extracted from the matching `## [<version>]`
section of `CHANGELOG.md` and passed via `--changelog`.
- **ClawScan note** accurately describes expected behavior: remote HTTP
MCP endpoint + read-only GitHub-release version check + local config
inspection (no exfiltration).

## Required setup

- Repo secret **`CLAWHUB_TOKEN`** (already added) — the token's account
must have publish rights to the `chainbase` owner.

## Notes

- Must merge to `main` to take effect (release-please runs from the
default branch).
- v1.9.0 was already published manually; this automates all future
releases.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-18 18:38:26 +08:00
..