ci: リリース公開時に配布用 .app をビルド添付(Homebrew 配布)#63
Merged
Conversation
release-please がリリースを publish(タグ作成)したら macos ランナーで Release ビルド → アドホック署名 → zip → そのリリースへ添付する。手動実行(workflow_dispatch)で既存タグへの 後追いビルドも可能。HOMEBREW_TAP_TOKEN(Love-Rox/homebrew-tap への write PAT)を設定すると Cask の version/sha256 を自動更新(未設定なら ::notice の sha256 で手動更新)。 配布はアドホック署名(無料・notarization なし)。ローカルで Release ビルドが自己完結の universal .app(x86_64+arm64、libghostty/GRDB 静的リンク)として起動することを検証済み。
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.
概要
Homebrew Cask 配布のためのリリースビルド自動化。
release-pleaseがリリースを publish したら、配布用.appをビルドしてそのリリースに添付する。追加
.github/workflows/release-build.yml:release: published(+workflow_dispatchで既存タグへ後追い)dittoで zip →gh release uploadHOMEBREW_TAP_TOKEN(Love-Rox/homebrew-tapへの Contents:write の fine-grained PAT)があれば Cask の version/sha256 を自動更新。無ければ::noticeに出た sha256 で手動更新。署名方針
アドホック署名(無料・notarization なし)。ローカルで Release ビルドが自己完結の universal
.app(x86_64 + arm64、libghostty/GRDB は静的リンク、埋め込みフレームワーク不要)として zip 展開後に起動することを検証済み。初回起動は Gatekeeper がブロックするため、Cask の caveats で許可手順を案内する。別途必要(このPR外)
Love-Rox/homebrew-tapリポジトリ(Cask を配置)HOMEBREW_TAP_TOKENsecret(任意)v0.4.0 リリースには検証済みの
LaboLabo-0.4.0.zipを手動添付済み。次回リリース(v0.4.1〜)からはこのワークフローが自動で添付する。