File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build example
2+
3+ on :
4+ push :
5+ branches : [ master ]
6+ pull_request :
7+ branches : [ master ]
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ defaults :
13+ run :
14+ working-directory : ./example
15+ steps :
16+ - uses : actions/checkout@v2
17+
18+ - uses : actions/setup-java@2
19+ with :
20+ distribution : ' zulu'
21+ java-version : ' 11'
22+
23+ - uses : subosito/flutter-action@v1
24+ with :
25+ channel : ' stable'
26+
27+ - name : Print Dart SDK version
28+ run : dart --version
29+
30+ - name : Print Flutter SDK version
31+ run : flutter --version
32+
33+ - name : Install dependencies
34+ run : flutter pub get
35+
36+ - name : Format code
37+ run : flutter format lib --set-exit-if-changed
38+
39+ - name : Analyze
40+ run : flutter analyze lib
41+
42+ - name : Build APK
43+ run : flutter build apk --no-shrink
44+
45+ - name : Upload APK
46+ uses : actions/upload-artifact@v2
47+ with :
48+ name : app
49+ path : build/app/outputs/apk/release/app-release.apk
You can’t perform that action at this time.
0 commit comments