Add Runimal release workflow #1
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: Runimal Release | ||
|
Check failure on line 1 in .github/workflows/runimal-release.yml
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| upload_to_testflight: | ||
| description: Upload exported IPA to TestFlight | ||
| required: false | ||
| type: boolean | ||
| default: false | ||
| push: | ||
| branches: | ||
| - master | ||
| jobs: | ||
| build: | ||
| runs-on: macos-15 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Select Xcode | ||
| run: sudo xcode-select -s /Applications/Xcode.app | ||
| - name: Generate Project | ||
| run: xcodegen generate | ||
| - name: Build iPhone | ||
| run: xcodebuild -project RunimalApple.xcodeproj -scheme RunimalPhone -destination 'generic/platform=iOS' build | ||
| - name: Build Watch | ||
| run: xcodebuild -project RunimalApple.xcodeproj -scheme RunimalWatch -destination 'generic/platform=watchOS' build | ||
| - name: Archive And Export | ||
| if: github.event_name == 'workflow_dispatch' | ||
| env: | ||
| TEAM_ID: ${{ secrets.DEVELOPMENT_TEAM_ID }} | ||
| run: ./scripts/release/testflight_archive.sh | ||
| - name: Upload To TestFlight | ||
| if: github.event_name == 'workflow_dispatch' && inputs.upload_to_testflight && secrets.ASC_KEY_ID != '' && secrets.ASC_ISSUER_ID != '' && secrets.ASC_PRIVATE_KEY_BASE64 != '' | ||
| env: | ||
| ASC_KEY_ID: ${{ secrets.ASC_KEY_ID }} | ||
| ASC_ISSUER_ID: ${{ secrets.ASC_ISSUER_ID }} | ||
| ASC_PRIVATE_KEY_BASE64: ${{ secrets.ASC_PRIVATE_KEY_BASE64 }} | ||
| run: ./scripts/release/upload_to_testflight.sh | ||