I am using Github Actions for signing and notarizing, but it's been stuck on notarizing for hours. I cancelled and retried but same thing happens. I am using Tauri which is running the notarize scripts.
Here is my main.yml:
name: macOS Build Script
on:
push:
branches:
- 'main'
permissions:
contents: write
issues: write
pull-requests: write
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
- name: Install Node.js Dependencies
run: npm install
- name: Build the App
run: npm run tauri build
- name: List build artifacts
run: |
echo "Build artifacts:"
ls -R src-tauri/target/release/bundle/
- name: Create Release
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
with:
tagName: app-v__VERSION__
releaseName: 'App v__VERSION__'
releaseBody: 'macOS build. See the assets to download this version and install.'
releaseDraft: true
prerelease: false
- name: Create Release Manually
if: failure()
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: app-v0.0.0
release_name: App v0.0.0 (macOS)
draft: true
prerelease: false
id: create_release
- name: Upload Release Asset
if: failure()
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./src-tauri/target/release/bundle/dmg/mac-app_0.0.0_x64.dmg
asset_name: mac-app_0.0.0_x64.dmg
asset_content_type: application/x-apple-diskimage