fix(action): build apk #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: Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| runs-on: macos-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Flutter | |
| uses: subosito/flutter-action@v2 | |
| with: | |
| channel: stable | |
| cache: true | |
| - name: Install dependencies | |
| run: cd app && flutter pub get | |
| - name: Accept Android SDK licenses | |
| run: yes | flutter doctor --android-licenses | |
| - name: Build APK | |
| run: | | |
| chmod +x ./scripts/build_android.sh | |
| ./scripts/build_android.sh | |
| - name: Build IPA | |
| run: | | |
| chmod +x ./scripts/build_ios.sh | |
| ./scripts/build_ios.sh | |
| - name: Upload IPA | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ios-ipa | |
| path: | | |
| app/build/dist/zero.ipa | |
| app/build/dist/zero.apk |