Skip to content

Add goreleaser and tagpr for automated releases#2

Merged
buty4649 merged 3 commits intomainfrom
add-goreleaser-tagpr
Apr 17, 2026
Merged

Add goreleaser and tagpr for automated releases#2
buty4649 merged 3 commits intomainfrom
add-goreleaser-tagpr

Conversation

@buty4649
Copy link
Copy Markdown
Contributor

Summary

  • goreleaser: タグpushでバイナリリリース。ターゲットは linux/amd64, darwin/arm64, windows/amd64
  • tagpr: main pushをトリガーにバージョン更新PRを自動生成。PRマージでタグが付いてgoreleaserが起動する流れ
  • xp --version で version / commit / build date を表示(ldflagsで埋め込み)

リリースフロー

  1. mainにマージ → tagprがバージョン更新PRを作成・更新
  2. tagpr PRをマージ → タグが打たれる
  3. タグpush → goreleaserがGitHub Releaseを作成

Test plan

  • goreleaser check が通る
  • goreleaser release --snapshot --clean で3プラットフォーム全てビルド成功
  • go test ./... が通る
  • xp --version で ldflags 経由の情報が表示される

🤖 Generated with Claude Code

- .goreleaser.yml: builds for linux/amd64, darwin/arm64, windows/amd64
- .github/workflows/release.yml: runs goreleaser on tag push
- .tagpr + .github/workflows/tagpr.yml: automates version PRs and tagging
- cmd/root.go: expose version/commit/date via --version, injected via ldflags

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@buty4649 buty4649 self-assigned this Apr 17, 2026
buty4649 and others added 2 commits April 17, 2026 12:42
Distribute raw executables (no tar.gz/zip wrapper) so users can
download and run directly.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@buty4649 buty4649 merged commit f7eecb0 into main Apr 17, 2026
2 checks passed
@buty4649 buty4649 deleted the add-goreleaser-tagpr branch April 17, 2026 03:46
This was referenced Apr 17, 2026
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