Update build.yml #6
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: Flutter iOS Build | |
| on: | |
| push: | |
| branches: | |
| - main # Or your branch name | |
| workflow_dispatch: | |
| jobs: | |
| build_ios: | |
| runs-on: macos-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| flutter-version: '3.35.6' | |
| - name: Install dependencies | |
| run: flutter pub get | |
| - name: Build iOS | |
| run: flutter build ipa --release -t lib/main_prod.dart | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: app-ipa | |
| path: build/ios/ipa |