From 9fb8a4abea3f2063ca610826239392e31f407856 Mon Sep 17 00:00:00 2001 From: "amaury.zarzelli" Date: Thu, 30 Nov 2023 10:18:32 +0100 Subject: [PATCH] feat(CICD)(ios): upload ipa for testing purposes --- .github/workflows/ios-deploy.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ios-deploy.yml b/.github/workflows/ios-deploy.yml index 1671303f..31371585 100644 --- a/.github/workflows/ios-deploy.yml +++ b/.github/workflows/ios-deploy.yml @@ -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 + 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 }}”