AgentSkillsCN

create-release

通过更新Changelog并标记提交,为hyAway创建GitHub发布版本。当用户希望“发布”、“上线”、“标记版本”或“创建发布”时,可使用此功能。支持按日期格式(如v2026.01.28)自动更新Changelog并完成Git标签标注。

SKILL.md
--- frontmatter
name: create-release
description: Create a GitHub release for hyAway by updating the changelog and tagging commits. Use when user wants to "release", "publish", "tag a version", or "create a release". Handles changelog updates and git tagging with date format (v2026.01.28).

Create Release

Create releases with changelog entry and git tag.

Tag Format

vYYYY.MM.DD (e.g., v2026.01.28)

Process

  1. Update changelog for today's date in docs/changelog.md
  2. Commit if there are uncommitted changes
  3. Tag: git tag v2026.01.28

After Tagging

Push the branch and tag together using --follow-tags:

bash
git push --follow-tags

This pushes the branch and any tags pointing to commits being pushed in one command. Prefer this over separate git push + git push origin <tag> calls.

Tip: Set git config --global push.followTags true to make this the default for git push.

Once the tag reaches the remote, it triggers:

  • GitHub release with changelog content extracted
  • Docker image tagged ghcr.io/hyaway/hyaway:v2026.01.28

Commands

bash
# Create release tag
git tag v2026.01.28

# Push branch + tag together
git push --follow-tags

# Tag specific commit
git tag v2026.01.28 <commit-hash>

# Delete tag (if needed to redo)
git tag -d v2026.01.28
git push origin :refs/tags/v2026.01.28

Important

  • Changelog entry date must match tag: v2026.01.28 expects ## 2026-01-28
  • Tag must point to commit containing the changelog entry
  • Old commits (before workflow existed) need manual dispatch via GitHub Actions UI