-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (39 loc) · 1.12 KB
/
flutter-workflow.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Flutter CI
on:
push:
tags: [ "v*" ]
jobs:
build:
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:
channel: 'beta'
- name: Change to app directory
run: cd app
- name: Get dependencies
run: flutter pub get
working-directory: app
- name: Analyze code
run: flutter analyze .
working-directory: app
- name: Build APK
run: flutter build apk --split-per-abi
working-directory: app
- uses: actions/upload-artifact@v3
with:
name: release-apk
path: ./app/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk
- name: Internal Release
uses: ncipollo/release-action@v1
if: startsWith(github.ref, 'refs/tags/')
with:
makeLatest: true
allowUpdates: true
removeArtifacts: true
generateReleaseNotes: false
artifacts: "./app/build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk"