xcode version #4
This file contains hidden or 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 tvOS App | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| jobs: | |
| build: | |
| name: Build tvOS App | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@v3 | |
| - name: Set Up Xcode | |
| run: sudo xcode-select -switch /Applications/Xcode.app | |
| - name: Build tvOS App | |
| run: | | |
| xcodebuild clean \ | |
| -project tvos-example.xcodeproj \ | |
| -scheme tvos-example \ | |
| -sdk appletvsimulator \ | |
| -configuration Release \ | |
| -derivedDataPath build | |
| - name: Export IPA | |
| run: | | |
| mkdir -p build/ipa | |
| xcodebuild \ | |
| -exportArchive \ | |
| -archivePath build/Build/Products/Release-appletvsimulator/tvos-example.xcarchive \ | |
| -exportPath build/ipa \ | |
| -exportOptionsPlist ExportOptions.plist | |
| - name: Upload Build Artifact | |
| uses: actions/upload-artifact@v3 | |
| with: | |
| name: tvos-example-ipa | |
| path: build/ipa/tvos-example.ipa | |