Skip to content

Commit

Permalink
Upload iOS App to testflight
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-powell committed Dec 22, 2023
1 parent 1ec09d3 commit ed72d6b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- ios-upload-testflight # TODO: this is a temporary branch for testing (REMOVE)
pull_request:

concurrency:
Expand Down Expand Up @@ -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
Expand All @@ -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 -archivePath $RUNNER_TEMP/iosApp.xcarchive -scheme iosApp -exportArchive -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'
Expand Down

0 comments on commit ed72d6b

Please sign in to comment.