Skip to content

Publish notarized GitHub releases from version tags - #509

Open
zunda-pixel wants to merge 2 commits into
mainfrom
codex/tag-driven-release
Open

zunda-pixel wants to merge 2 commits into
mainfrom
codex/tag-driven-release

Conversation

@zunda-pixel

Copy link
Copy Markdown
Collaborator

Closes #471.

Push a version tag to test the tagged commit, build the macOS arm64 distribution, and sign it with Developer ID Application. After Apple accepts notarization, staple the ticket and verify the extracted ZIP in a separate job. Publish the signed ZIP, checksums, source assets, and generated notes after the MCP smoke test passes.

Request the stable Homebrew update after the GitHub Release is public. The tap keeps its own bottle signing and verification pipeline. Existing drafts can still use the legacy resume workflow where applicable.

Maintainer setup

Follow the signing setup instructions. Configure the XcodeMCPKit release-signing environment with the Developer ID and App Store Connect credentials. Allow release tags in the release-signing and release-publish deployment rules.

Verification

  • All 110 release script tests passed.
  • Actionlint with ShellCheck, the signing script's ShellCheck, and git diff --check passed.
  • Live Developer ID signing, Apple notarization, and publication remain unverified. This change has not pushed a release tag.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T11:18:07.372932Z 9b1ccb7 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 546a5931a0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/release.yml Outdated
Comment on lines +175 to +176
gh release create --generate-notes --verify-tag "${flags[@]}" -- "$VERSION" \
"$BINARY_ASSET" macOS-arm64-SHA256SUMS.txt release/*

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Resume publication instead of recreating the release

If asset upload or the final publish request fails after GitHub has created the release, rerunning this job always calls gh release create again and fails because the tag already has a draft or published release. gh release create --help documents that creation, asset uploads, and publication use separate API calls, so this partial state is expected after transient failures; the retained resumer cannot recover it because scripts/release_sync.py only scans legacy workflow_dispatch runs with receipt artifacts. Make this step detect and safely complete the matching existing release so a publication retry can proceed to Homebrew dispatch.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Updated in 9b1ccb7. Rerunning the publish job now resumes the draft created by the same Actions run. It verifies existing assets by SHA-256, uploads only missing or incomplete assets, and publishes the draft. If publication already succeeded, the rerun verifies the published assets and succeeds without changing the release.

The regression tests cover draft resumption, already-published releases, and rejection of unrelated drafts or mismatched assets. All 115 tests and Actionlint passed.

@zunda-pixel

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: 9b1ccb7632

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@lynnswap

Copy link
Copy Markdown
Owner

ちょ〜〜助かります!
リリース周りは一応目を通しておきたいので、夜確認しますね!

@zunda-pixel

Copy link
Copy Markdown
Collaborator Author

ありがとうございますー

最初だけGitHub、App Store Connectの設定が面倒ですね...

This branch has not been deployed

No deployments
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.

リリース方法なんとかしたい。

2 participants