-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (46 loc) · 1.34 KB
/
android.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
name: Android CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
paths-ignore:
- "/ios/**"
pull_request:
branches: [ "main" ]
paths-ignore:
- "/ios/**"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
working-directory: ./example
- run: echo "${{ secrets.MAPTILER_KEY }}" > assets/maptiler.txt
working-directory: ./example
- run: touch assets/tomtom.txt
working-directory: ./example
- run: flutter build apk
working-directory: ./example
- run: flutter build appbundle
working-directory: ./example
- name: Upload APK artifact
uses: actions/upload-artifact@v3
with:
name: apk
path: example/build/app/outputs/flutter-apk/app-release.apk
- name: Upload App Bundle artifact
uses: actions/upload-artifact@v3
with:
name: appbundle
path: example/build/app/outputs/bundle/release/app-release.aab