From 3132b6d9626cb51b6dfa0380decdbebb55281a29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petrus=20Nguy=E1=BB=85n=20Th=C3=A1i=20H=E1=BB=8Dc?= Date: Thu, 25 Feb 2021 15:10:28 +0700 Subject: [PATCH] Update flutter.yml --- .github/workflows/flutter.yml | 33 ++++++++++++++++++++++++++++----- 1 file changed, 28 insertions(+), 5 deletions(-) diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml index d284f81..023d894 100644 --- a/.github/workflows/flutter.yml +++ b/.github/workflows/flutter.yml @@ -15,12 +15,35 @@ jobs: - uses: actions/setup-java@v1 with: java-version: '12.x' + - uses: subosito/flutter-action@v1 with: channel: 'beta' - - run: dart --version - - run: flutter --version - - run: flutter pub get - - run: flutter packages pub run build_runner build --delete-conflicting-outputs - - run: flutter build apk + + - name: Print Dart SDK version + run: dart --version + + - name: Print Flutter SDK version + run: flutter --version + + - name: Install dependencies + run: flutter pub get + + - name: Format code + run: flutter format lib --set-exit-if-changed + + - name: Analyze + run: flutter analyze lib --fatal-infos + + - name: Gen code + run: flutter packages pub run build_runner build --delete-conflicting-outputs + + - name: Build APK + run: flutter build apk --no-shrink + + - name: Upload APK + uses: actions/upload-artifact@v2 + with: + name: app + path: build/app/outputs/apk/release/app-release.apk