ci: release automation from Conventional Commits #126

Merged
Sebi merged 1 commits from feat/release into main 2026-11-23 16:16:11 +00:00
Owner

Version and changelog (tools/release, plain Go, no new dependencies)

  • release next [stable|beta]: semver from the commits since the last stable tag. Breaking (! or BREAKING CHANGE:) → major (minor before 1.0), feat → minor, fix/perf → patch; nothing releasable → error. Betas are vX.Y.Z-beta.N of the coming stable version, numbered on.
  • release notes [-json] <tag>: Markdown changelog (breaking changes with their footer, features, fixes, performance; chores/CI/tests left out) with commit links and a compare link. Stable notes cover everything since the last stable release, betas since the previous tag.
  • release check <tag>.

Flow

  • make release / make release CHANNEL=beta: only on a clean main equal to origin/main; creates the annotated tag and prints the notes. Pushing stays manual.
  • .gitea/workflows/release.yaml on v* tags: validates the tag, builds linux/amd64 and arm64 tarballs (binaries + LICENSE, README, .env.example) with version/commit injected, SHA256SUMS, and publishes a Gitea release (prerelease for betas) with the notes and assets. Refuses to overwrite an existing release.

Image channels (ci.yaml, pushed once PACKAGE_TOKEN exists): edge ← main (was latest), beta ← prereleases, latest/stable/X.Y + X.Y.Z ← releases. Image tags drop the v. README documents the channels and the release flow.

Signing, SBOM (#34) follow separately.

Closes #33

🤖 Generated with Claude Code

https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3

**Version and changelog** (`tools/release`, plain Go, no new dependencies) - `release next [stable|beta]`: semver from the commits since the last stable tag. Breaking (`!` or `BREAKING CHANGE:`) → major (minor before 1.0), `feat` → minor, `fix`/`perf` → patch; nothing releasable → error. Betas are `vX.Y.Z-beta.N` of the coming stable version, numbered on. - `release notes [-json] <tag>`: Markdown changelog (breaking changes with their footer, features, fixes, performance; chores/CI/tests left out) with commit links and a compare link. Stable notes cover everything since the last stable release, betas since the previous tag. - `release check <tag>`. **Flow** - `make release` / `make release CHANNEL=beta`: only on a clean `main` equal to `origin/main`; creates the annotated tag and prints the notes. Pushing stays manual. - `.gitea/workflows/release.yaml` on `v*` tags: validates the tag, builds linux/amd64 and arm64 tarballs (binaries + LICENSE, README, .env.example) with version/commit injected, `SHA256SUMS`, and publishes a Gitea release (prerelease for betas) with the notes and assets. Refuses to overwrite an existing release. **Image channels** (ci.yaml, pushed once `PACKAGE_TOKEN` exists): `edge` ← main (was `latest`), `beta` ← prereleases, `latest`/`stable`/`X.Y` + `X.Y.Z` ← releases. Image tags drop the `v`. README documents the channels and the release flow. Signing, SBOM (#34) follow separately. Closes #33 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi added 1 commit 2026-11-23 06:17:12 +00:00
ci: release automation from Conventional Commits
ci / image (pull_request) Successful in 3m39s
ci / build (pull_request) Successful in 5m34s
ci / lint (pull_request) Successful in 9m41s
ci / test (pull_request) Successful in 16m7s
68a7827475
tools/release derives the next version from the commits since the last
stable release and renders the changelog. `make release` tags it on main,
CHANNEL=beta a numbered prerelease of the coming version; pushing the tag
runs the release workflow, which publishes the release with its notes,
Linux binaries and checksums. Images get channel tags: edge for main, beta
for prereleases, latest, stable and X.Y for releases.

Closes #33

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
Sebi merged commit b05f3dbdb0 into main 2026-11-23 16:16:11 +00:00
Sebi deleted branch feat/release 2026-11-23 16:16:14 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ZB-Server/uptimesebi#126