-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (45 loc) · 1.05 KB
/
android-release.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
42
43
44
45
46
47
48
49
50
51
name: Android Release
# 1
on:
# 2
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# 3
workflow_dispatch:
# 4
jobs:
# 5
build:
# 6
runs-on: ubuntu-latest
# 7
steps:
# 8
- uses: actions/checkout@v3
# 9
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: "12.x"
# 10
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.5'
channel: 'stable'
- run: flutter --version
# 12
- name: Get dependencies
run: flutter pub get
- name: Start build apk
run: flutter build apk --no-tree-shake-icons
# Runs a set of commands using the runners shell
- name: Start release build
run: flutter build appbundle --no-tree-shake-icons
# Upload generated apk to the artifacts.
- uses: actions/upload-artifact@v1
with:
name: release-apk
path: build/app/outputs/flutter-apk/app-release.apk