Skip to content

Commit ff23026

Browse files
committed
handle testflight upload
1 parent 6bf0f0f commit ff23026

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

.github/workflows/ios-action.yml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ jobs:
141141
-scheme "App" \
142142
-configuration "Release Production" | egrep "CODE_SIGN|PROVISION|PRODUCT_BUNDLE_IDENTIFIER|DEVELOPMENT_TEAM"
143143
144-
- name: Show code signing identities
145-
run: |
146-
security find-identity -v -p codesigning
144+
# - name: Show code signing identities
145+
# run: |
146+
# security find-identity -v -p codesigning
147147

148148
# - name: Inspect provisioning profile
149149
# run: |
@@ -197,23 +197,23 @@ jobs:
197197
-exportOptionsPlist "$EXPORT_PLIST" \
198198
-exportPath "$RUNNER_TEMP/export"
199199
200-
# - name: Save App Store Connect API key (.p8)
201-
# env:
202-
# API_KEY_B64: ${{ secrets.APPSTORE_API_PRIVATE_KEY }} # base64 of AuthKey_XXXXXX.p8
203-
# run: |
204-
# set -euo pipefail
205-
# mkdir -p ~/private_keys
206-
# echo -n "$API_KEY_B64" | base64 --decode \
207-
# > ~/private_keys/AuthKey_${{ secrets.APPSTORE_API_KEY_ID }}.p8
208-
209-
# - name: Upload to TestFlight
210-
# env:
211-
# API_KEY_ID: ${{ secrets.APPSTORE_API_KEY_ID }}
212-
# API_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
213-
# run: |
214-
# set -euo pipefail
215-
# IPA=$(ls $RUNNER_TEMP/export/*.ipa | head -n 1)
216-
# xcrun iTMSTransporter -m upload \
217-
# -assetFile "$IPA" \
218-
# -apiKey "$API_KEY_ID" \
219-
# -apiIssuer "$API_ISSUER_ID"
200+
- name: Save App Store Connect API key (.p8)
201+
env:
202+
API_KEY_B64: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
203+
run: |
204+
set -euo pipefail
205+
mkdir -p ~/private_keys
206+
echo -n "$API_KEY_B64" | base64 --decode \
207+
> ~/private_keys/AuthKey_${{ secrets.APPSTORE_API_KEY_ID }}.p8
208+
209+
- name: Upload to TestFlight
210+
env:
211+
API_KEY_ID: ${{ secrets.APPSTORE_API_KEY_ID }}
212+
API_ISSUER_ID: ${{ secrets.APPSTORE_ISSUER_ID }}
213+
run: |
214+
set -euo pipefail
215+
IPA=$(ls $RUNNER_TEMP/export/*.ipa | head -n 1)
216+
xcrun iTMSTransporter -m upload \
217+
-assetFile "$IPA" \
218+
-apiKey "$API_KEY_ID" \
219+
-apiIssuer "$API_ISSUER_ID"

0 commit comments

Comments
 (0)