add script to build and push ios app to testflight #115
This file contains 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
# This workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
name: Dart | |
on: | |
push: | |
branches: [ "dev" ] | |
pull_request: | |
branches: [ "dev" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v2 | |
with: | |
distribution: 'zulu' | |
java-version: '17' | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.24.0' | |
- name: Install dependencies | |
run: flutter pub get | |
- name: Generate code | |
run: make generate | |
- name: Generate localization | |
run: make intl | |
- name: Run tests | |
run: flutter test | |
- name: Build APK | |
run: flutter build apk --release | |
- name: Upload APK | |
uses: actions/upload-artifact@v2 | |
with: | |
name: app-release.apk | |
path: build/app/outputs/flutter-apk/app-release.apk |