File tree Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Expand file tree Collapse file tree 1 file changed +28
-5
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,35 @@ jobs:
1515 - uses : actions/setup-java@v1
1616 with :
1717 java-version : ' 12.x'
18+
1819 - uses : subosito/flutter-action@v1
1920 with :
2021 channel : ' beta'
21- - run : dart --version
22- - run : flutter --version
23- - run : flutter pub get
24- - run : flutter packages pub run build_runner build --delete-conflicting-outputs
25- - run : flutter build apk
22+
23+ - name : Print Dart SDK version
24+ run : dart --version
25+
26+ - name : Print Flutter SDK version
27+ run : flutter --version
28+
29+ - name : Install dependencies
30+ run : flutter pub get
31+
32+ - name : Format code
33+ run : flutter format lib --set-exit-if-changed
34+
35+ - name : Analyze
36+ run : flutter analyze lib --fatal-infos
37+
38+ - name : Gen code
39+ run : flutter packages pub run build_runner build --delete-conflicting-outputs
40+
41+ - name : Build APK
42+ run : flutter build apk --no-shrink
43+
44+ - name : Upload APK
45+ uses : actions/upload-artifact@v2
46+ with :
47+ name : app
48+ path : build/app/outputs/apk/release/app-release.apk
2649
You can’t perform that action at this time.
0 commit comments