ethan zhou 903e0393d5 Add GoReleaser release pipeline + Homebrew tap automation
Tags `vX.Y.Z` now build cross-platform binaries (macOS + Linux, amd64 + arm64),
publish a GitHub release with checksums, and update the Homebrew tap formula --
making the documented `brew install revylai/tap/greenlight` actually work, with
version injected into `greenlight version`.

- .goreleaser.yml: builds with -X main.version, archives, checksums, and a
  homebrew_casks block targeting RevylAI/homebrew-tap. `goreleaser check` clean.
- .github/workflows/release.yml: runs goreleaser on tag push.
- RELEASING.md: one-time setup (create the tap repo, add a HOMEBREW_TAP_TOKEN
  secret) and how to cut a release.
- gitignore dist/.

Activation needs two manual steps (see RELEASING.md): create RevylAI/homebrew-tap
and set the HOMEBREW_TAP_TOKEN secret. No code changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 17:47:47 -07:00

34 lines
805 B
YAML

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: "1.24"
- uses: goreleaser/goreleaser-action@v6
with:
version: "~> v2"
args: release --clean
env:
# GITHUB_TOKEN publishes the release on this repo.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# HOMEBREW_TAP_TOKEN is a PAT with write access to RevylAI/homebrew-tap
# (the default GITHUB_TOKEN can't push to another repo). Set it in
# Settings -> Secrets -> Actions.
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}