Skip to content

Commit b36311f

Browse files
author
ebreen
committed
fix(distribution): pass signing identity to archive and export steps
1 parent 3dd7c57 commit b36311f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ jobs:
6868
- name: Archive
6969
env:
7070
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
71+
SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
7172
API_KEY_ID: ${{ secrets.API_KEY_ID }}
7273
API_ISSUER_ID: ${{ secrets.API_ISSUER_ID }}
7374
run: |
@@ -80,18 +81,21 @@ jobs:
8081
-authenticationKeyPath "$RUNNER_TEMP/AuthKey.p8" \
8182
-authenticationKeyID "$API_KEY_ID" \
8283
-authenticationKeyIssuerID "$API_ISSUER_ID" \
83-
DEVELOPMENT_TEAM="$TEAM_ID"
84+
DEVELOPMENT_TEAM="$TEAM_ID" \
85+
CODE_SIGN_IDENTITY="$SIGNING_IDENTITY"
8486
8587
- name: Export archive
8688
env:
8789
TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
90+
SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
8891
API_KEY_ID: ${{ secrets.API_KEY_ID }}
8992
API_ISSUER_ID: ${{ secrets.API_ISSUER_ID }}
9093
run: |
9194
EXPORT_PLIST="$RUNNER_TEMP/export-options.plist"
9295
cp scripts/export-options.plist "$EXPORT_PLIST"
9396
/usr/libexec/PlistBuddy -c "Add :teamID string $TEAM_ID" "$EXPORT_PLIST"
9497
/usr/libexec/PlistBuddy -c "Set :signingStyle automatic" "$EXPORT_PLIST"
98+
/usr/libexec/PlistBuddy -c "Add :signingCertificate string $SIGNING_IDENTITY" "$EXPORT_PLIST"
9599
96100
xcodebuild -exportArchive \
97101
-archivePath "$RUNNER_TEMP/CloudMount.xcarchive" \

0 commit comments

Comments
 (0)