Build iOS app #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build iOS app" | |
on: | |
workflow_dispatch: | |
branches: [main] | |
jobs: | |
build_with_signing: | |
runs-on: macos-latest | |
steps: | |
- name: Check Xcode version | |
run: /usr/bin/xcodebuild -version | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Clean Xcode project | |
run: xcodebuild clean -workspace YourWorkspace.xcworkspace -scheme YourScheme | |
- name: Build archive | |
run: | | |
echo "Building archive..." | |
xcodebuild -scheme "UpgradeUpsell" \ | |
-archivePath $RUNNER_TEMP/UpgradeUpsell.xcarchive \ | |
-sdk iphoneos \ | |
-configuration Debug \ | |
clean archive \ | |
-allowProvisioningUpdates | |
echo "Archive built successfully." | |
- name: Debug content of $RUNNER_TEMP | |
run: | | |
ls -R $RUNNER_TEMP | |
- name: Upload archive | |
uses: actions/upload-artifact@v3 | |
with: | |
name: archive | |
path: ${{ runner.temp }}/UpgradeUpsell.xcarchive | |
retention-days: 3 |