Repository navigation
ci: add stable release workflow - #23
Merged
somanshreddy merged 2 commits intoApr 6, 2026
Merged
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
somanshreddy
force-pushed
the
04-01-ci_add_release_workflow_for_goreleaser_on_tag_push
branch
from
April 6, 2026 19:52
aa2c356 to
ce452f9
Compare
This was referenced Apr 6, 2026
somanshreddy
marked this pull request as ready for review
April 6, 2026 20:09
jrusso1020
approved these changes
Apr 6, 2026
Triggers on v* tags. Runs tests, then GoReleaser builds 6 binaries (linux/darwin/windows × amd64/arm64), creates GitHub Release with checksums. Version injected from git tag via ldflags. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
somanshreddy
force-pushed
the
04-01-ci_add_release_workflow_for_goreleaser_on_tag_push
branch
from
April 6, 2026 23:28
ce452f9 to
182a6a1
Compare
somanshreddy
added a commit
that referenced
this pull request
Apr 6, 2026
## Description Adds a `.gitleaks.toml` allowlist so the PostHog project API token in `internal/analytics/analytics.go` doesn't fail the secrets CI check. PostHog project tokens are public client-side ingest tokens by design — they're embedded in every frontend and CLI that uses PostHog. This is not a secret leak. The allowlist is scoped narrowly: only matches the exact `const posthogAPIKey = "phc_..."` assignment in that one file. Without this, the `secrets` CI job fails on PRs #23, #49, and #50 (the entire M6 stack). ## Testing CI `secrets` job should pass after this merges. Verified the allowlist regex matches the token assignment pattern.
Collaborator
Author
Merge activity
|
somanshreddy
deleted the
04-01-ci_add_release_workflow_for_goreleaser_on_tag_push
branch
April 6, 2026 23:43
somanshreddy
added a commit
that referenced
this pull request
Apr 6, 2026
## Description
Replaces the dev-phase installer and release workflow with a versioned release cycle. Three changes:
**1. Dev release workflow rewrite (`.github/workflows/dev-release.yml`):**
The old workflow used a rolling `dev` tag with unversioned assets (`heygen_linux_amd64.tar.gz`) and `version="dev-<sha>"`. The new workflow auto-computes a semver-compliant tag from the latest stable release: bumps patch, appends `-dev.YYYYMMDD.SHORTHASH` (e.g., `v0.1.1-dev.20260406.abc1234`). Creates an immutable git tag and delegates to GoReleaser for versioned asset names, checksums, and prerelease publishing. Each dev build is a separate prerelease, not a rolling overwrite.
Version derivation: reads latest stable tag via `git tag --list`, bumps patch (`v0.1.0` → `v0.1.1`), appends dev metadata. If no stable tag exists, starts from `v0.0.1-dev.*`.
**2. Install script rewrite (`scripts/install.sh`):**
The old installer defaulted to the `dev` tag and required `GITHUB_TOKEN`. The new installer:
- Defaults to latest stable release (not dev)
- `--dev` flag installs latest dev prerelease
- `--version v0.1.0` pins to a specific version (`v` prefix required)
- Falls back to unauthenticated GitHub API when no token is available (ready for public repo)
- Uses versioned GoReleaser asset names (`heygen_v0.1.0_linux_amd64.tar.gz`)
- `--help` flag for discoverability
- `--dev` and `--version` are mutually exclusive
**3. GoReleaser asset naming (`.goreleaser.yaml`):**
Archive name template changed from `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}` to `{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}` — includes the `v` prefix in the filename for consistency with the tag format.
README, RELEASE.md, and SKILL.md updated to reflect the new install commands and versioning scheme.
Stacked on PR #23 (stable release workflow).
## Testing
Install script tested manually with `--help`, `--dev`, `--version`, and default (stable) modes. Dev release workflow validated by reading the computed version step output. GoReleaser config validated via `make goreleaser-check`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Adds a manual GitHub Actions workflow for cutting stable releases. This is the first PR in the M6 release cycle stack (#23 → #49 → #50).
Versioning Strategy
The CLI uses semver with a
vprefix everywhere — git tags,--versionoutput,--versionflag input, JSON responses, install script.v{major}.{minor}.{patch}v0.1.0v{base}-dev.{YYYYMMDD}.{shorthash}v0.1.1-dev.20260406.abc1234devgo buildwithout ldflagsSemver ordering:
v0.2.0>v0.1.1-dev.20260407.def>v0.1.1-dev.20260406.abc>v0.1.0. Stable always beats prerelease. Dev builds sort chronologically by date.Dev version auto-derivation (PR #49): The dev workflow reads the latest stable tag, bumps patch (
v0.1.0→v0.1.1), and appends-dev.YYYYMMDD.SHORTHASH. No VERSION file, no manual bumps. Dev builds always sort above the latest stable.Bumping rules: Pre-1.0 (
v0.x.y): minor = features, patch = fixes, no stability guarantees. Post-1.0: full semver contract.This PR — Stable Release Workflow
Trigger: GitHub Actions UI → "Stable Release" → input version tag (e.g.,
v0.1.0) → "Run workflow"What it does:
v0.1.0— rejects1.0orfoo)mainHEADchecksums.txt, publishes as a stable GitHub releaseDownstream PRs:
heygen update/heygen update checkcommands (channel-aware: stable users get stable updates, dev users get dev updates)Testing
Workflow syntax validated. GoReleaser config tested by
goreleaser-checkCI job. Version validation tested manually with valid/invalid inputs.