AgentSkillsCN

prerelease

构建 ah 并使用二进制文件及校验和创建 GitHub 预发布版本。

SKILL.md
--- frontmatter
name: prerelease
description: Build ah and create a GitHub prerelease with the binary and checksums.

prerelease

Trigger the prerelease.yml GitHub Actions workflow, watch it, and verify the release was created.

Steps

1. Trigger the workflow

Default is prerelease. If the user asks for a full release, pass -f release=true.

bash
gh workflow run prerelease.yml --ref main
# full release:
gh workflow run prerelease.yml --ref main -f release=true

2. Find the run

Wait a few seconds, then locate the in-progress run:

bash
sleep 5
gh run list --workflow prerelease.yml -L 3

Capture the run ID of the most recent run.

3. Watch the run

bash
gh run watch <run-id> --exit-status

4. Handle failure

If the run fails, inspect logs:

bash
gh run view <run-id> --log-failed

Report the error and stop.

5. Verify the release

bash
gh release list --limit 1
gh release view <tag>

Output

Print a summary:

code
## Prerelease: <tag>

- run: <run-id>
- tag: <tag>
- artifacts: ah, SHA256SUMS
- url: <release-url>

Rules

  • default to prerelease unless the user explicitly says "full release"
  • always watch the run to completion — do not fire and forget
  • if the workflow fails, show the failed logs and stop