Skip to content

ci: auto-publish skill to ClawHub on release tag#59

Open
lxcong wants to merge 1 commit into
mainfrom
ci/clawhub-publish-on-release
Open

ci: auto-publish skill to ClawHub on release tag#59
lxcong wants to merge 1 commit into
mainfrom
ci/clawhub-publish-on-release

Conversation

@lxcong
Copy link
Copy Markdown
Contributor

@lxcong lxcong commented May 29, 2026

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.01.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

Add a publish-clawhub job to release-please.yml, gated on
release_created so it only runs for stable vX.Y.Z releases cut by
release-please. It installs the pinned clawhub CLI, authenticates with
the CLAWHUB_TOKEN secret, extracts the version's CHANGELOG.md section,
and runs `clawhub skill publish skills/agentkey --owner chainbase
--slug agentkey` with an accurate ClawScan note describing the skill's
remote MCP endpoint and read-only local config/version checks.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant