Skip to content

Commit

Permalink
separate stepss
Browse files Browse the repository at this point in the history
  • Loading branch information
leo4life2 committed Jul 22, 2024
1 parent c1ed30f commit 2bf728a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,28 @@ jobs:
security import ~/private_keys/certs.p12 -k build.keychain -P "${{ secrets.MAC_CERTS_PASSWORD }}" -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple: -s -k "" build.keychain
- name: Build/release Electron app (macOS)
- name: Build/release Electron app (macOS - x64)
if: matrix.os == 'macos-latest'
uses: samuelmeuli/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
publish: always
args: --mac --x64 --arm64 # Ensure both architectures are specified
args: --mac --x64 # Build for Intel architecture
env:
CSC_LINK: file:///Users/runner/private_keys/certs.p12
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }}
API_KEY_ID: ${{ vars.API_KEY_ID }}
API_KEY_ISSUER_ID: ${{ vars.API_KEY_ISSUER_ID }}

- name: Build/release Electron app (macOS - arm64)
if: matrix.os == 'macos-latest'
uses: samuelmeuli/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
publish: always
args: --mac --arm64 # Build for ARM architecture
env:
CSC_LINK: file:///Users/runner/private_keys/certs.p12
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTS_PASSWORD }}
Expand Down

0 comments on commit 2bf728a

Please sign in to comment.