Skip to content

Build iOS app

Build iOS app #78

Workflow file for this run

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 UpgradeUpsell.xcworkspace -scheme UpgradeUpsell
- 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