diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 97b5794..08d814e 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - ios-upload-testflight # TODO: this is a temporary branch for testing (REMOVE) pull_request: concurrency: @@ -61,7 +62,7 @@ jobs: with: gradle-home-cache-cleanup: true - - name: Build with Xcode + - name: Build Artifact with Xcode run: xcodebuild -project iosApp/iosApp.xcodeproj -scheme iosApp -configuration Debug -destination generic/platform=iOS -archivePath $RUNNER_TEMP/Tidy.xcarchive - name: Upload Archive Artifacts @@ -71,23 +72,21 @@ jobs: path: $RUNNER_TEMP/Tidy/**/*.xcarchive # Only run the following steps when a push event occurs on main branch - - name: Build App Artifact with Xcode + - name: Build IPA Artifact with Xcode if: github.event_name == 'push' env: EXPORT_OPTIONS_PLIST: ${{ secrets.IOS_EXPORT_OPTIONS }} run: | EXPORT_OPTS_PATH=$RUNNER_TEMP/ExportOptions.plist - echo -n "IOS_EXPORT_OPTIONS" | base64 --decode -o $RUNNER_TEMP/exportOptions.plist - xcodebuild -archivePath $RUNNER_TEMP/iosApp.xcarchive - -exportArchive -exportPath '$RUNNER_TEMP/Tidy.app' - -exportOptionsPlist $RUNNER_TEMP/exportOptions.plist + echo -n "IOS_EXPORT_OPTIONS" | base64 --decode -o $EXPORT_OPTS_PATH + xcodebuild -exportArchive -exportFormat ipa -archivePath $RUNNER_TEMP/iosApp.xcarchive -exportPath '$RUNNER_TEMP/Tidy.ipa' -exportOptionsPlist $EXPORT_OPTS_PATH - name: Upload to Github Artifacts if: github.event_name == 'push' uses: actions/upload-artifact@v3 with: name: app - path: $RUNNER_TEMP/**/*.app + path: $RUNNER_TEMP/**/*.ipa - name: Copy App Store Private Key if: github.event_name == 'push'