Skip to content

feat(ci): add goreleaser for multi-platform binary releases#117

Merged
skynet2 merged 1 commit intomasterfrom
ci/goreleaser
Apr 19, 2026
Merged

feat(ci): add goreleaser for multi-platform binary releases#117
skynet2 merged 1 commit intomasterfrom
ci/goreleaser

Conversation

@skynet2
Copy link
Copy Markdown
Member

@skynet2 skynet2 commented Apr 19, 2026

Summary

  • Ships go-money-server and go-money-mcp-client as standalone binaries for linux/darwin (amd64+arm64) and windows (amd64) via goreleaser, attached to every GitHub Release alongside the existing docker images.
  • Swaps paulhatch/semantic-version for go-semantic-release/action so conventional-commit messages auto-bump tags (feat → minor, fix/chore/perf/refactor → patch, docs/ci/style/test/build → skip). Downstream docker + helm jobs now gate on needs.version.outputs.published == 'true' on master.
  • Documents MCP client setup end-to-end (docs/mcp/client-setup.md) — the stdio↔HTTP bridge, flags, $GOMONEY_TOKEN fallback, Claude Desktop / Claude Code config snippet, troubleshooting.
  • Expands the README: dedicated MCP Integration section (quick-start config, tool table, docs links), full list of importers (Firefly III, Monobank, Privat24, Paribas, Revolut), binary-release install path, rules-engine pointer.
  • cmd/mcp-client gains a -version flag and falls back to $GOMONEY_TOKEN when -token is unset, so secrets can stay out of shell history.

Notable details

  • Per-binary ldflags: -X github.com/ft-t/go-money/pkg/boilerplate.version/commitSHA for server, -X main.version/commitSHA for mcp-client.
  • Per-id archive blocks so each binary produces its own tarball/zip (10 archives per release, not 5).
  • go-semantic-release default analyzer will still bump major on BREAKING CHANGE: footers or feat!: syntax. Conventional commits without !: never bump major — matches current workflow.

Test plan

  • make lint — 0 issues
  • go build ./... clean
  • goreleaser check passes
  • make goreleaser-snapshot produces 10 archives; go-money-mcp-client -version prints injected version + commit SHA
  • Merge to master → verify go-semantic-release tags, goreleaser job uploads binaries to the release, docker flow still passes
  • Download a release binary on macOS/linux and confirm -server + $GOMONEY_TOKEN wiring works against a live MCP server

Publish go-money-server and go-money-mcp-client for
linux/darwin amd64+arm64 and windows amd64 on every release,
alongside existing docker images.

- .goreleaser.yaml with per-binary ldflags (boilerplate.version
  for server, main.version for mcp-client) and per-id archives
- workflow switches version job from paulhatch/semantic-version
  to go-semantic-release so conventional commits auto-tag; docker
  jobs now gated on published==true
- mcp-client gains -version flag and $GOMONEY_TOKEN env fallback
- README expanded: MCP integration section with client config
  snippet and tool table, importers, binary releases
- docs/mcp/client-setup.md: stdio bridge setup, flags, Claude
  Desktop/Code config, troubleshooting
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.80%. Comparing base (3d5c3e4) to head (9365290).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #117   +/-   ##
=======================================
  Coverage   86.80%   86.80%           
=======================================
  Files          86       86           
  Lines        7155     7155           
=======================================
  Hits         6211     6211           
  Misses        717      717           
  Partials      227      227           
Flag Coverage Δ
unittests 86.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@skynet2 skynet2 merged commit 2a996fb into master Apr 19, 2026
8 checks passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces automated release management using GoReleaser, configuring builds for the server and MCP client across multiple architectures. The mcp-client has been enhanced with versioning support and the ability to read service tokens from the GOMONEY_TOKEN environment variable. Additionally, the documentation has been significantly expanded to include a detailed MCP client setup guide, updated installation instructions, and a comprehensive overview of the AI agent integration features. I have no feedback to provide as there were no review comments.

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