release
Cut a strike-cli GitHub release from main — preflight, notes, annotated tag, watch release.yml, verify assets. Use when shipping a version (v0.x.y), tagging, or preparing release notes.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 5
- Forks
- 2
01 前言 Front Matter
- name
- release
- description
- Cut a strike-cli GitHub release from main — preflight, notes, annotated tag, watch release.yml, verify assets. Use when shipping a version (v0.x.y), tagging, or preparing release notes.
03 SKILL.md 正文
Release (strike-cli)
Ship a version tag that triggers .github/workflows/release.yml (multi-arch CLI archives + GitHub Release). Pre-release tags also attach unsigned desktop installers.
Preconditions
gh auth statusok; push rights to the repo that owns tags.- Working tree clean on an up-to-date
main(or explicit commit SHA to tag). - User confirmed version number (e.g.
v0.1.0) and that this is intentional.
Stop-and-ask if main CI is red, an open release-block issue exists, or the tag already exists.
Preflight
git fetch origin main --tags
git checkout main
git merge --ff-only origin/main
git status -sb # must be clean, main == origin/main
gh run list --branch main --limit 3 # latest CI success preferred
git tag -l 'v*' | tail -5
git log "$(git describe --tags --abbrev=0)..HEAD" --oneline
Load test-and-validate tier B (or C if trust-boundary commits dominate since last tag). Prefer green CI on main over re-running the full suite locally when CI is already success on HEAD.
Optional: load smoke for a quick product check.
Changelog
Draft the version entry from git log PREV..HEAD before tagging. Follow the
standard in CHANGELOG.md and docs/contributing.md: rename [Unreleased] to
[vX.Y.Z] - YYYY-MM-DD, add a fresh [Unreleased], and update the comparison
links. Commit and push that entry to main; the release workflow fails if the
tag has no matching non-empty entry.
Include:
- User-facing changes grouped under the standard categories
- Breaking/default changes (keybinds, config) if any
- Upgrade note when relevant
Do not ship install-only boilerplate or copy implementation-only commit activity into the changelog.
Tag and push
VERSION=v0.x.y # user-confirmed
git tag -a "$VERSION" -m "strike $VERSION
<one-line summary>
"
git push origin "$VERSION"
Never force-push tags. Never tag a dirty tree or a commit not on origin/main unless the user explicitly requests a pre-release from a branch.
0.10.x tags are a pre-release line: release.yml publishes them with
--prerelease --latest=false, so they never become /releases/latest
(install.sh and the self-updater resolve latest). Do not edit a 0.10.x
release to latest. A -rc.N tag reuses the base version's changelog
section (e.g. ## [v0.10.0]) when it has no section of its own.
Watch workflow
gh run list --workflow=release.yml --limit 3
gh run watch <id> --exit-status
gh release view "$VERSION"
Confirm assets: linux/darwin × amd64/arm64 tarballs + checksums.txt.
Pre-release tags also attach desktop installers (see below). Stable tags do not. checksums.txt stays the CLI archive checksums; desktop files have their own desktop-checksums.txt.
Verify GitHub release body
release.yml creates the install block and copies the matching changelog entry.
Verify both are present:
gh release view "$VERSION" --json body --jq .body
Post-verify
gh release view "$VERSION" --json tagName,assets,url
# optional: strike --upgrade / install script against the new tag
Report
- Tag, commit SHA, release URL
- Workflow conclusion
- Asset names
- Whether the body matches the versioned changelog entry
Desktop bundles
Attached only for pre-release tags:
v0.10.*(the 0.10 line, includingv0.10.0andv0.10.0-rc.N)- any other
v*tag with a semver pre-release suffix (v1.0.0-rc.1)
Stable tags (v0.5.3, v0.11.0, v1.0.0) keep today's CLI asset set only.
Additive names (they do not replace strike_<tag>_<os>_<arch>.tar.gz or checksums.txt):
| Asset | What it is |
|---|---|
strike-desktop_<tag>_linux_amd64.deb |
Linux amd64 Debian package |
strike-desktop_<tag>_linux_amd64.AppImage |
Linux amd64 AppImage |
strike-desktop_<tag>_darwin_universal.dmg |
macOS arm64+x64 disk image |
desktop-checksums.txt |
sha256 of those installers only |
macOS bundles are unsigned: ad-hoc signature only, no Apple Developer ID, no notarization. Gatekeeper blocks a normal double-click. Open the DMG, then Control-click Strike.app and choose Open, or use System Settings → Privacy & Security → Open Anyway. If it still refuses: xattr -dr com.apple.quarantine /Applications/Strike.app. Native Windows installers are not built.
Dry-run on a branch (builds bundles, uploads workflow artifacts, does not create or edit a release):
gh workflow run release.yml --ref <branch> -f dry_run=true
gh run list --workflow=release.yml --limit 3
dry_run=false fails the workflow. It is not a publish switch.
A pull request that changes .github/workflows/release.yml runs the same
dry-run (artifacts only, no release). Tag pushes are unchanged.
Hard rules
- No force tag move; no secrets in notes.
- No release while main CI is failing unless user overrides in writing.
- Annotated tags only (
-a). - Prefer patch/minor policy the user stated; default to their explicit version string.
- Do not attach desktop bundles to stable tags, and do not replace
checksums.txtor the CLI tarball names. - macOS desktop bundles stay unsigned (no Developer ID, no notarization) until a signing change says otherwise.