Skip to content

ci(release): build desktop .dmg and auto-bump the Homebrew tap on tag - #22

Merged
adamsiwiec1 merged 1 commit into
mainfrom
ci/auto-release-tap
Oct 24, 2026
Merged

adamsiwiec1 merged 1 commit into
mainfrom
ci/auto-release-tap

Conversation

@adamsiwiec1

Copy link
Copy Markdown
Contributor

Pushing a version tag (v*) now runs the whole release, instead of the manual steps we did by hand for v0.1.1-alpha.1.

What the tag triggers

  • Builds the CLI archives for macOS arm64, macOS x86_64, and Linux x86_64.
  • Builds the desktop app with Tauri and produces the .dmg for macOS arm64 and x86_64. The vendored evilginx is built first (make build-evilginx) because the app launches it at runtime.
  • Computes sha256 for every artifact and publishes a GitHub Release for the tag with the .dmgs, CLI archives, updater bundles, and the existing packaging stubs.
  • Opens a PR on openhat-security/homebrew-tap that bumps the version, URLs, and sha256 in the phishkit cask and the phishkit-cli cask, so brew upgrade serves the new build once that PR lands.

The .dmgs stay unsigned and unnotarized, same as the first hand-built release, so macOS still warns on first launch. Add Apple secrets and a notarize step later to change that.

Secrets to add (names only)

  • TAURI_SIGNING_PRIVATE_KEY and TAURI_SIGNING_PRIVATE_KEY_PASSWORD: the app ships createUpdaterArtifacts, so tauri build needs the minisign key to produce the signed updater bundle.
  • TAP_GITHUB_TOKEN: a token with write access to openhat-security/homebrew-tap. Without it the tap job is skipped and the rest of the release still runs.

This PR does not cut a tag. Tagging stays a manual step.

Extend the tag-triggered release so a pushed v* tag does end to end what we
did by hand last time:

- Add a desktop job that builds the Tauri .dmg for macOS arm64 and x86_64,
  building the vendored evilginx first (make build-evilginx) since the app
  launches it at runtime, and uploads each .dmg plus its sha256 and the signed
  updater bundle.
- Have publish attach the .dmgs and updater artifacts to the GitHub Release
  alongside the existing CLI archives and packaging stubs.
- Add a tap job that checks out openhat-security/homebrew-tap, bumps the
  version and sha256 in the phishkit and phishkit-cli casks from the real
  release assets, and opens a PR as Adam. It is skipped when TAP_GITHUB_TOKEN
  is absent so the rest of the release still runs.

The .dmgs stay unsigned/unnotarized, matching the first hand-built release.
Needs repo secrets: TAURI_SIGNING_PRIVATE_KEY, TAURI_SIGNING_PRIVATE_KEY_PASSWORD
(the app ships createUpdaterArtifacts) and TAP_GITHUB_TOKEN (write access to the
tap). This does not cut a tag.
@adamsiwiec1
adamsiwiec1 merged commit 6e1158d into main Oct 24, 2026
5 checks passed
@adamsiwiec1
adamsiwiec1 deleted the ci/auto-release-tap branch October 24, 2026 08:16
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