Refactor .github/workflows/macos-alpha-build.yml: Update Apple Developer ID in notarytool command

This commit is contained in:
mauro-balades
2024-09-07 23:17:12 +02:00
parent b8682d9612
commit 8fa89ae960

View File

@@ -1,4 +1,3 @@
on:
workflow_call:
inputs:
@@ -11,7 +10,7 @@ jobs:
name: Build macOS - ${{ matrix.arch }}
environment: production
runs-on: ${{ matrix.os }}
strategy:
strategy:
fail-fast: false
matrix:
include:
@@ -28,7 +27,7 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: '3.11'
python-version: '3.11'
- uses: actions/checkout@v4
with:
@@ -101,10 +100,10 @@ jobs:
- name: Import
env:
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
run: |
pnpm surfer import --verbose
- name: Build language packs
run: sh scripts/download-language-packs.sh
@@ -127,7 +126,6 @@ jobs:
p12-file-base64: ${{ secrets.macOS_CERTIFICATES_P12_For_App_BASE64 }}
p12-password: ${{ secrets.macOS_CERTIFICATES_P12_PASSWORD }}
- name: Decode .p12 file
id: decode_p12
run: |
@@ -155,11 +153,11 @@ jobs:
rm -rf certificate.p12
rm -rf certificate.p12.password
- name: Sign to .dmg
- name: Sign to .dmg
run: |
codesign -s "${{ secrets.macOS_AppleDeveloperId }}" zen.macos-${{ matrix.arch }}.dmg
xcrun notarytool submit "zen.macos-${{ matrix.arch }}.dmg" \
--apple-id "${{ secrets.macOS_AppleDeveloperId }}" \
--apple-id "${{ secrets.macOS_AppleAccountId }}" \
--team-id "${{ secrets.macOS_AppleDeveloperIdTeamId }}" \
--password "${{ secrets.macOS_AppleDeveloperIdPassword }}" \
--wait