Skip to content

Make macOS notarization opt-in for universal macOS releases#38

Draft
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-macos-build-job-failure
Draft

Make macOS notarization opt-in for universal macOS releases#38
Copilot wants to merge 3 commits into
mainfrom
copilot/fix-macos-build-job-failure

Conversation

Copilot AI commented Jun 30, 2026

Copy link
Copy Markdown

The build (macos-latest, --target universal-apple-darwin) job was failing after a successful build because the release workflow always attempted Apple notarization, and Apple rejected the request with 403 due to missing/expired account agreements. This change separates build/signing from notarization so CI can still produce the universal macOS artifact when notarization is temporarily unavailable.

  • Workflow behavior

    • Split the Tauri release step into:
      • a default path that builds/uploads artifacts without notarization credentials
      • a macOS-only path that includes notarization credentials only when explicitly enabled
  • macOS release handling

    • Keep shared release-signing/updater environment at the job level
    • Restrict APPLE_ID, APPLE_PASSWORD, and APPLE_TEAM_ID to the notarization-only step
    • Gate notarization behind the repository variable ENABLE_MACOS_NOTARIZATION == 'true'
  • Effect

    • macOS universal builds no longer fail solely because Apple notarization is blocked by external account state
    • Other platform release paths remain unchanged
- name: Build and upload
  if: matrix.platform != 'macos-latest' || vars.ENABLE_MACOS_NOTARIZATION != 'true'
  uses: tauri-apps/tauri-action@v0

- name: Build and upload with notarization
  if: matrix.platform == 'macos-latest' && vars.ENABLE_MACOS_NOTARIZATION == 'true'
  uses: tauri-apps/tauri-action@v0
  env:
    APPLE_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_APPLE_ID }}
    APPLE_PASSWORD: ${{ secrets.PROD_MACOS_NOTARIZATION_PWD }}
    APPLE_TEAM_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_TEAM_ID }}

Copilot AI changed the title [WIP] Fix failing GitHub Actions job build (macos-latest, --target universal-apple-darwin) Make macOS notarization opt-in for universal macOS releases Jun 30, 2026
Copilot AI requested a review from rambaut June 30, 2026 05:21
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