Skip to content

Commit 640c573

Browse files
authored
Create flutter-build.yml
Begin flutter build in CI
1 parent fa1acc3 commit 640c573

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/flutter-build.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is a basic workflow to help you get started with Actions
2+
3+
name: CI
4+
5+
# Controls when the workflow will run
6+
on:
7+
# Triggers the workflow on push or pull request events but only for the master branch
8+
push:
9+
branches: [ master ]
10+
11+
# Allows you to run this workflow manually from the Actions tab
12+
workflow_dispatch:
13+
14+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
15+
jobs:
16+
# This workflow contains a single job called "build"
17+
build:
18+
# The type of runner that the job will run on
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Archive production artifacts
23+
- uses: actions/checkout@v2
24+
- uses: actions/setup-java@v2
25+
with:
26+
distribution: 'zulu'
27+
java-version: '11'
28+
- uses: subosito/flutter-action@v2
29+
with:
30+
flutter-version: '2.10.0'
31+
- run: flutter pub get
32+
- run: flutter pub run build_runner build
33+
- run: flutter test
34+
- run: flutter build apk
35+
- run: flutter build appbundle
36+
37+
- name: Archive artifacts
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: release-apk
41+
path: |
42+
build/app/outputs/apk/release/app-release.apk
43+
build/app/outputs/bundle/release/app-release.aab

0 commit comments

Comments
 (0)