Repository navigation
ci(release): publish binaries and the Homebrew formula on tags - #327
Merged
Merged
Conversation
This was referenced Nov 16, 2026
Release tags produce only the container image, so running aeman outside a container means building it with Go and Node. GoReleaser cross-compiles binaries for darwin and linux on amd64 and arm64 around an already built SPA, and writes a Homebrew formula with a service block into aenix-io/homebrew-tap. It does not run npm itself: that executes dependency code, which must not share an environment with the release tokens, so a hook only checks that web/dist is there. The formula keeps `brews` although GoReleaser deprecates it: only a formula has the service block that brew services runs. Pre-release tags skip the tap, since for Homebrew the tap is always the latest release. The version keeps its leading v, matching the image and make backend. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
Runs GoReleaser on every v* tag next to the existing image workflow. The SPA is built in a separate job with a read-only token and handed over as an artifact, so npm packages never run on a runner that holds a write token. The tap token is minted from the GitHub App installed on aenix-io/homebrew-tap, scoped to that repository and contents: write, and minted before anything is published, so a broken App setup fails the run without leaving a release behind with no formula. Dependency caches are off: a release build must not consume a cache that a pull request run could have written. Assisted-by: LLM Signed-off-by: Aleksei Sviridkin <f@lex.la>
lexfrei
force-pushed
the
ci/goreleaser
branch
from
November 16, 2026 22:28
14655ba to
4703048
Compare
This was referenced Nov 17, 2026
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.
A
v*tag now publishes prebuilt binaries and the Homebrew formula. A tokenless job builds the SPA; GoReleaser then cross-compiles aeman for darwin and linux on amd64 and arm64, creates the GitHub release with the archives andchecksums.txt, and commitsFormula/aeman.rbstraight tomainof aenix-io/homebrew-tap.brew install aenix-io/tap/aemanthen installs a binary instead of building with Go and Node, andbrew upgradepicks up every release without a manual bump.The formula keeps the
brewssection although GoReleaser deprecates it: only a formula has theserviceblock that runsaeman mcpunderbrew services. The service waits 5 seconds between restarts, because systemd's default 100ms delay trips its start limit and leaves the unit failed. Board settings come from Homebrew's per-service file~/.homebrew/services/aeman.env($XDG_CONFIG_HOME/homebrew/services/aeman.envwhen that is set), so the formula ships no config file or wrapper script. Pre-release tags do not touch the tap. The version string keeps its leadingv, as in the image andmake backend.npm runs only in that first job, so dependency code never shares a runner with a write token. The tap token is minted from the GitHub App with
actions/create-github-app-token, limited to aenix-io/homebrew-tap with contents: write. It is minted before anything is published, so a broken App setup fails the run without leaving a release that has no formula. Dependency caches are off in this workflow, andimage.ymlis unchanged. Every tag now gets a GitHub release with a changelog generated from the conventional commit subjects; until now releases were written by hand, and most tags have none.Part of #276: Windows binaries, cosign signatures and the .deb are not in this change.
Merge order: aenix-io/homebrew-tap#1 first, then this PR. That way the first release overwrites the hand-written formula on the tap's main instead of conflicting with an open PR.
Tested locally: after
make frontend,goreleaser release --snapshot --clean --skip=publishbuilds all four targets, and withoutweb/distit stops at the hook. I installed the generated formula from a local tap against the snapshot archive;brew test,brew styleandbrew audit --strictpass, and the rendered launchd and systemd units pick up variables from the env file.actionlintandzizmorreport nothing onrelease.yml.