Skip to content

Add GoReleaser config and release workflow#19

Merged
munezaclovis merged 3 commits intomainfrom
feat/goreleaser
Mar 5, 2026
Merged

Add GoReleaser config and release workflow#19
munezaclovis merged 3 commits intomainfrom
feat/goreleaser

Conversation

@munezaclovis
Copy link
Copy Markdown
Contributor

@munezaclovis munezaclovis commented Mar 5, 2026

Summary

  • Add GoReleaser configuration and GitHub Actions release workflow to automate binary builds and GitHub Releases when a version tag is pushed.

Changes

  • cmd/root.go -- Change hardcoded version "0.1.0" to "dev" default, with ldflags injection support (-X github.com/prvious/pv/cmd.version=...)
  • .goreleaser.yaml -- Cross-compile for darwin on amd64/arm64, static binaries (CGO_ENABLED=0), checksums, auto-changelog. Release assets are bare binaries named pv-darwin-arm64 and pv-darwin-amd64.
  • .github/workflows/release.yml -- Triggers on v* tags, runs tests, then GoReleaser to build and publish to GitHub Releases

Usage

git tag v0.2.0
git push origin v0.2.0

- Update cmd/root.go to support version injection via ldflags (default: dev)
- Add .goreleaser.yaml for cross-compiled builds (darwin/linux, amd64/arm64)
- Add release.yml workflow triggered on version tags (v*)
@munezaclovis munezaclovis merged commit 506f55f into main Mar 5, 2026
1 of 2 checks passed
@munezaclovis munezaclovis deleted the feat/goreleaser branch March 5, 2026 05:02
munezaclovis added a commit that referenced this pull request Mar 25, 2026
- #16 (setup TUI off-by-one): cursor bound is correct, max = len+1
- #19 (StartBackgroundUpdater): IS called from server.Start()
- #38 (updateSymlinks divergence): SetGlobal saves before calling,
  paths always agree
- #39 (frankenphp logFile leak): struct only built after Start()
  succeeds, Process is always non-nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant