Skip to content

Release locally in one command; make the CI release manual - #9

Merged
BlockchainHB merged 1 commit into
mainfrom
hasaam/local-releases
Sep 29, 2026
Merged

BlockchainHB merged 1 commit into
mainfrom
hasaam/local-releases

Conversation

@BlockchainHB

Copy link
Copy Markdown
Owner

Releases are cut from your Mac, which already has the Developer ID certificate and the PRMonitor notarization profile, so GitHub doesn't need any signing secrets.

  • scripts/release.sh <version> --publish builds, signs, notarizes and staples, then tags origin/main and publishes the GitHub release. It refuses to publish from a dirty or stale checkout, or to reuse an existing tag.
  • release.yml now runs only when started by hand (workflow_dispatch), so pushing a tag no longer starts a run that fails for lack of secrets.
  • docs/RELEASING.md documents the local flow as the standard path, with the CI secrets moved to an optional section.

Tested: both guards reject bad invocations before building (dirty checkout, unknown option). The build steps are unchanged from the flow that shipped v1.0.0.

Releases are cut from a Mac that already holds the Developer ID certificate
and notarization profile, so GitHub needs no signing secrets. Add --publish
to scripts/release.sh (tags origin/main and publishes the GitHub release,
refusing dirty or stale checkouts and existing tags), and change the release
workflow to run only when started by hand.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-29T01:31:57.642029Z a8b03c7 PR opened
ℹ️ 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: a8b03c7122

ℹ️ 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".

ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }}
ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }}
run: scripts/release.sh "${GITHUB_REF_NAME}"
run: scripts/release.sh "${{ inputs.tag }}"

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 Keep the dispatch tag out of shell source

When a write-level user dispatches this workflow with an existing tag containing shell syntax such as $(...)—which is valid in a Git ref—GitHub interpolates the input before the shell parses this line, and the surrounding double quotes do not prevent command substitution. Arbitrary commands can therefore run while the App Store Connect key and unlocked signing keychain are available; the direct interpolation is repeated at line 65 while GH_TOKEN is present. Pass the expression through an env entry and reference the resulting shell variable instead.

Useful? React with 👍 / 👎.

Comment thread scripts/release.sh
Comment on lines +103 to +105
git tag -a "v$VERSION" -m "PR Monitor $VERSION"
git push -q origin "v$VERSION"
gh release create "v$VERSION" "$DIST/PRMonitor.dmg" "$DIST/PRMonitor.zip" "$DIST/SHA256SUMS" \

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Allow publishing to resume after pushing the tag

If the tag push succeeds but gh release create then fails because of a transient network or asset-upload error, the next invocation fetches that tag and exits at the existing-tag guard before it can retry publication. This is particularly plausible because gh release create --help documents creation, asset upload, and publication as separate API calls. The advertised one-command flow can thus leave a remote tag or draft without a usable release; permit reuse when the existing tag resolves to the current origin/main commit and resume the release operation.

Useful? React with 👍 / 👎.

@BlockchainHB
BlockchainHB merged commit be47ebe into main Sep 29, 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