Release process
The two tag namespaces, the bundle vs GitHub publishers, GoReleaser, cosign and the act dry run.
Two release kinds coexist in this repository, distinguished by tag namespace.
The two tag namespaces
| Namespace | Format | Released by | Example |
|---|---|---|---|
| CLI binary | vX.Y.Z | GoReleaser via .github/workflows/release.yml | v0.5.1 |
| Skills | <skill>/vX.Y.Z | the CLI's own agore-skill release command | diataxis/v1.2.0 |
The workflow's tag filter is v*, which never matches the skill format —
the namespaces stay independent by construction.
Skill releases (the CLI's own pipeline)
For each skill, agore-skill release:
- resolves the tag (
--tag, thenGITHUB_REF_TYPE/GITHUB_REF_NAMEfrom a CI tag push, then release tags pointing atHEADviagit tag --points-at HEAD, and finallygit describe --tags --exact-match HEADas the detailed-error fallback), - runs the lint gate (any
Erroraborts), - builds the four artifacts into
dist/:<skill>_<version>.zip,<skill>_<version>.tar.gz,<skill>_<version>_checksums.txt(SHA-256) and<skill>_<version>_CHANGELOG.md(install header + path-scoped commits), - publishes via the configured publishers:
- bundle — the default: artifacts are the deliverable, no upload.
- github — creates a GitHub Release and uploads the four files,
through the
ghCLI when available, else the REST API withGITHUB_TOKEN.
--snapshot runs steps 1–3 with the fixed version v0.0.0-snapshot,
requires no git state, and never publishes.
CLI binary releases (GoReleaser)
On a v* tag push, release.yml runs GoReleaser 2.20.3 with
.goreleaser.yaml:
beforehook:go mod verify- builds:
cmd/agore-skillwithCGO_ENABLED=0,-trimpath,-s -w -X main.version={{.Version}}(the ldflags injection makesagore-skill --versionreport the tagged version, stripped of the leadingv; local builds reportdev), for darwin/linux/windows × amd64/arm64 (12 binaries) - archives: tar.gz named
agore-skill_<version>_<os>_<arch>; zip overrides for windows - checksum:
checksums.txt, SHA-256 - changelog: GitHub-sourced, sorted ascending, grouped into Features
(
feat:), Bug fixes (fix:) and Other changes;docs:,test:andchore:commits are filtered out - signs: cosign
sign-blobover the checksum artifacts, producing<artifact>.sigand<artifact>.pem(keyless, via the workflow'sid-token: write)
A manual workflow_dispatch defaults to dry_run: true — snapshot
artifacts only, cosign never installed. Publishing requires a tag push or
an explicit dry_run: false.
Local dry runs
mise run release:act-dry-runRuns the workflow inside act with dry_run: true (GOFLAGS=-buildvcs=false
for the .git-less container copy). Artifacts stay in the container and
are listed in the log.
Related
- How to cut each release kind: How to cut a release
- Skill tag grammar and archive layout: Release format reference
- The workflows' triggers and permissions: CI workflows reference