@@ -381,16 +381,23 @@ jobs:
381
381
# Make universal gettext library
382
382
lipo -create -output libintl.a /usr/local/opt/gettext/lib/libintl.a /opt/homebrew/opt/gettext/lib/libintl.a
383
383
384
+ - name : Download signing secrets
385
+ id : signing-secrets
386
+ uses : ./.github/actions/akv-secret
387
+ with :
388
+ vault : ${{ secrets.AZURE_VAULT }}
389
+ secrets : |
390
+ ${{ secrets.APPLE_APPSIGN_ID_SECRET_NAME }} > $output:appsign-id
391
+ ${{ secrets.APPLE_INSTSIGN_ID_SECRET_NAME }} > $output:instsign-id
392
+ ${{ secrets.APPLE_TEAM_ID_SECRET_NAME }} > $output:team-id
393
+ ${{ secrets.APPLE_DEVELOPER_ID_SECRET_NAME }} > $output:dev-id
394
+ ${{ secrets.APPLE_DEVELOPER_PASSWORD_SECRET_NAME }} > $output:dev-pass
395
+ ${{ secrets.APPLE_APPCERT_PASS_SECRET_NAME }} > $output:appcert-pass
396
+ ${{ secrets.APPLE_INSTCERT_PASS_SECRET_NAME }} > $output:instcert-pass
397
+ ${{ secrets.APPLE_APPCERT_SECRET_NAME }} base64> appcert.p12
398
+ ${{ secrets.APPLE_INSTCERT_SECRET_NAME }} base64> instcert.p12
399
+
384
400
- name : Set up signing/notarization infrastructure
385
- env :
386
- A1 : ${{ secrets.APPLICATION_CERTIFICATE_BASE64 }}
387
- A2 : ${{ secrets.APPLICATION_CERTIFICATE_PASSWORD }}
388
- I1 : ${{ secrets.INSTALLER_CERTIFICATE_BASE64 }}
389
- I2 : ${{ secrets.INSTALLER_CERTIFICATE_PASSWORD }}
390
- N1 : ${{ secrets.APPLE_TEAM_ID }}
391
- N2 : ${{ secrets.APPLE_DEVELOPER_ID }}
392
- N3 : ${{ secrets.APPLE_DEVELOPER_PASSWORD }}
393
- N4 : ${{ secrets.APPLE_KEYCHAIN_PROFILE }}
394
401
run : |
395
402
echo "Setting up signing certificates"
396
403
security create-keychain -p pwd $RUNNER_TEMP/buildagent.keychain
@@ -399,20 +406,18 @@ jobs:
399
406
# Prevent re-locking
400
407
security set-keychain-settings $RUNNER_TEMP/buildagent.keychain
401
408
402
- echo "$A1" | base64 -D > $RUNNER_TEMP/cert.p12
403
- security import $RUNNER_TEMP/cert.p12 \
409
+ security import appcert.p12 \
404
410
-k $RUNNER_TEMP/buildagent.keychain \
405
- -P "$A2" \
411
+ -P '${{ steps.signing-secrets.outputs.appcert-pass }}' \
406
412
-T /usr/bin/codesign
407
413
security set-key-partition-list \
408
414
-S apple-tool:,apple:,codesign: \
409
415
-s -k pwd \
410
416
$RUNNER_TEMP/buildagent.keychain
411
417
412
- echo "$I1" | base64 -D > $RUNNER_TEMP/cert.p12
413
- security import $RUNNER_TEMP/cert.p12 \
418
+ security import instcert.p12 \
414
419
-k $RUNNER_TEMP/buildagent.keychain \
415
- -P "$I2" \
420
+ -P '${{ steps.signing-secrets.outputs.instcert-pass }}' \
416
421
-T /usr/bin/pkgbuild
417
422
security set-key-partition-list \
418
423
-S apple-tool:,apple:,pkgbuild: \
@@ -421,16 +426,12 @@ jobs:
421
426
422
427
echo "Setting up notarytool"
423
428
xcrun notarytool store-credentials \
424
- --team-id "$N1" \
425
- --apple-id "$N2" \
426
- --password "$N3" \
427
- "$N4 "
429
+ --team-id '${{ steps.signing-secrets.outputs.team-id }}' \
430
+ --apple-id '${{ steps.signing-secrets.outputs.dev-id }}' \
431
+ --password '${{ steps.signing-secrets.outputs.dev-pass }}' \
432
+ "msftgit "
428
433
429
434
- name : Build, sign, and notarize artifacts
430
- env :
431
- A3 : ${{ secrets.APPLE_APPLICATION_SIGNING_IDENTITY }}
432
- I3 : ${{ secrets.APPLE_INSTALLER_SIGNING_IDENTITY }}
433
- N4 : ${{ secrets.APPLE_KEYCHAIN_PROFILE }}
434
435
run : |
435
436
die () {
436
437
echo "$*" >&2
@@ -490,16 +491,17 @@ jobs:
490
491
cp -R stage/git-universal-$VERSION/ \
491
492
git/.github/macos-installer/build-artifacts
492
493
make -C git/.github/macos-installer V=1 codesign \
493
- APPLE_APP_IDENTITY="$A3" || die "Creating signed payload failed"
494
+ APPLE_APP_IDENTITY=${{ steps.signing-secrets.outputs.appsign-id }} || die "Creating signed payload failed"
494
495
495
496
# Build and sign pkg
496
497
make -C git/.github/macos-installer V=1 pkg \
497
- APPLE_INSTALLER_IDENTITY="$I3" \
498
+ APPLE_INSTALLER_IDENTITY='${{ steps.signing-secrets.outputs.instsign-id }}' \
498
499
|| die "Creating signed pkg failed"
499
500
500
501
# Notarize pkg
501
502
make -C git/.github/macos-installer V=1 notarize \
502
- APPLE_INSTALLER_IDENTITY="$I3" APPLE_KEYCHAIN_PROFILE="$N4" \
503
+ APPLE_INSTALLER_IDENTITY='${{ steps.signing-secrets.outputs.instsign-id }}' \
504
+ APPLE_KEYCHAIN_PROFILE="msftgit" \
503
505
|| die "Creating signed and notarized pkg failed"
504
506
505
507
# Create DMG
0 commit comments