Created
October 17, 2019 06:29
-
-
Save tianhaoz95/ca61776aeb308545af38e57c24aba7e1 to your computer and use it in GitHub Desktop.
Flutter merge checks
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: Merge | |
on: | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
build-doc: | |
name: Build docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install deps and compile docs | |
run: | | |
cd ./website | |
npm install | |
npm run build | |
build-web: | |
name: Build Web app | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '1.9.1+hotfix.4' | |
channel: 'stable' | |
- run: flutter channel master && flutter upgrade | |
- run: flutter config --enable-web | |
- run: cd ./iwfpapp && flutter create . | |
- run: cd ./iwfpapp && flutter build web | |
build-android: | |
name: Build Android apk | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '1.9.1+hotfix.4' | |
channel: 'stable' | |
- run: cd ./iwfpapp && flutter build apk --release | |
build-ios: | |
name: Build IOS ipa | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '1.9.1+hotfix.4' | |
channel: 'stable' | |
- run: flutter channel master && flutter upgrade | |
- run: cd ./iwfpapp && flutter build ios --release --no-codesign |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment