Skip to content

Release workflow: push Homebrew tap over SSH deploy key, make release step idempotent - #27

Merged
sangdth merged 1 commit into
masterfrom
fix/homebrew-tap-install-2111
Nov 21, 2026
Merged

sangdth merged 1 commit into
masterfrom
fix/homebrew-tap-install-2111

Conversation

@sangdth

@sangdth sangdth commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

  • Homebrew tap formula update now authenticates with an Ed25519 deploy key (HOMEBREW_TAP_DEPLOY_KEY) over SSH instead of a PAT, matching the key installed on the tap repo.
  • The tap update fails the job when the secret is missing, so a release can no longer silently ship without publishing the formula.
  • GitHub Release creation is idempotent: an existing release for the tag gets the archive re-uploaded with --clobber instead of failing on gh release create.
  • The temporary key and clone directories are removed on exit via a trap, and the tap push uses -u to track the remote branch.

Testing

  • cargo fmt --all -- --check — clean.
  • cargo clippy --all-targets --locked -- -D warnings — clean.
  • cargo test --locked — 123 passed, 0 failed; hermetic E2E e2e_dataplane 2 passed; e2e_system remains #[ignore] as it modifies real macOS state.
  • Manual: brew install sangdth/tap/lodo, lodo version (reports v0.1.0), and lodo-menubar --test all succeed after the tap was published.
  • Not run: the updated workflow end-to-end on a new v* tag push, and the HOMEBREW_TAP_DEPLOY_KEY-unset failure path, since neither can be exercised without publishing a release.

@sangdth
sangdth merged commit 0a9ce4d into master Nov 21, 2026
2 checks passed
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