Skip to content

Commit 03fc9ca

Browse files
committed
fix(ci): use fastlane api_key_path json
1 parent 46c2f40 commit 03fc9ca

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,17 +325,19 @@ jobs:
325325
run: |
326326
mkdir -p ${{ runner.temp }}/asc_key
327327
echo "${{ secrets.APP_STORE_CONNECT_KEY_P8 }}" | base64 --decode > ${{ runner.temp }}/asc_key/AuthKey.p8
328+
cat > ${{ runner.temp }}/asc_key/api_key.json <<EOF
329+
{
330+
"key_id": "${{ secrets.APP_STORE_CONNECT_KEY_ID }}",
331+
"issuer_id": "${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}",
332+
"key_filepath": "${{ runner.temp }}/asc_key/AuthKey.p8"
333+
}
334+
EOF
328335
329336
- name: Upload to TestFlight
330337
if: ${{ env.testflight_ready == 'true' }}
331-
env:
332-
APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
333-
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
334338
run: |
335339
fastlane pilot upload \
336-
--api_key_path "${{ runner.temp }}/asc_key/AuthKey.p8" \
337-
--api_key_id "$APP_STORE_CONNECT_KEY_ID" \
338-
--api_key_issuer_id "$APP_STORE_CONNECT_ISSUER_ID" \
340+
--api_key_path "${{ runner.temp }}/asc_key/api_key.json" \
339341
--ipa "${{ env.output }}/OpenList-Mobile.ipa" \
340342
--skip_waiting_for_build_processing true
341343

0 commit comments

Comments
 (0)