Skip to content

Commit 941936c

Browse files
committed
chore: update macOS workflow to use APPLE_API_KEY_BASE64 for improved key handling and environment configuration
1 parent 77b09a4 commit 941936c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build-mac.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
env:
2020
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
2121
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
22-
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
22+
APPLE_API_KEY_BASE64: ${{ secrets.APPLE_API_KEY }}
2323
CSC_KEY_PASSWORD: ${{ secrets.APPLE_CERTIFICATES_BUNDLE_PASSWORD }}
2424
steps:
2525
- name: Checkout repository
@@ -70,7 +70,11 @@ jobs:
7070
- name: Install Apple API key
7171
run: |
7272
mkdir -p ~/private_keys/
73-
echo -n "$APPLE_API_KEY" | base64 --decode > ~/private_keys/AuthKey_$APPLE_API_KEY_ID.p8
73+
74+
KEY_PATH=~/private_keys/AuthKey_$APPLE_API_KEY_ID.p8
75+
76+
echo -n "$APPLE_API_KEY_BASE64" | base64 --decode -o $KEY_PATH
77+
echo "APPLE_API_KEY=$KEY_PATH" >> $GITHUB_ENV
7478
7579
- name: Install Mac Profiles
7680
env:

0 commit comments

Comments
 (0)