Skip to content

Commit

Permalink
feat(CICD)(ios): upload ipa for testing purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
azarz committed Nov 30, 2023
1 parent f6fd407 commit 47b450a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/ios-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,25 @@ jobs:
echo -n "$EXPORT_PLIST" | base64 --decode --output $EXPORT_PLIST_PATH
cd ios/App && xcodebuild -exportArchive -archivePath $GITHUB_WORKSPACE/ign.xcarchive -exportOptionsPlist $EXPORT_PLIST_PATH -exportPath $RUNNER_TEMP/export
- name: Upload application
uses: actions/upload-artifact@v3
with:
name: app
path: $RUNNER_TEMP/export/App.ipa
retention-days: 3

- name: Decode auth api key file and save it
env:
API_KEY_BASE64: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
run: |
ls ~/private_keys
echo -n "$API_KEY_BASE64" | base64 --decode --output ~/private_keys/AuthKey_${{ secrets.APPSTORE_API_KEY_ID }}.p8
mkdir ~/.private_keys
echo -n "$API_KEY_BASE64" | base64 --decode --output ~/.private_keys/AuthKey_${{ secrets.APPSTORE_API_KEY_ID }}.p8
echo "After saving: "
ls ~/private_keys
ls ~/.private_keys
- name: "Upload file to test flight using CLI"
run: |
echo "Starting upload"
ls ~/private_keys
cd ios/App && xcrun altool validate-app -f $RUNNER_TEMP/export/App.ipa -t ios — apiKey ${{ secrets.APPSTORE_API_KEY_ID }} — apiIssuer ${{ secrets.APPSTORE_ISSUER_ID }}
cd ios/App && xcrun altool upload-app -f $RUNNER_TEMP/export/App.ipa -t ios — apiKey “${{ secrets.APPSTORE_API_KEY_ID }}” — apiIssuer “${{ secrets.APPSTORE_ISSUER_ID }}”
ls ~/.private_keys
cd ios/App && xcrun altool --validate-app -f $RUNNER_TEMP/export/App.ipa -t ios — apiKey ${{ secrets.APPSTORE_API_KEY_ID }} — apiIssuer ${{ secrets.APPSTORE_ISSUER_ID }}
cd ios/App && xcrun altool --upload-app -f $RUNNER_TEMP/export/App.ipa -t ios — apiKey “${{ secrets.APPSTORE_API_KEY_ID }}” — apiIssuer “${{ secrets.APPSTORE_ISSUER_ID }}”

0 comments on commit 47b450a

Please sign in to comment.