-
Notifications
You must be signed in to change notification settings - Fork 9
39 lines (36 loc) · 1.06 KB
/
build.yaml
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
name: Build
on: pull_request
permissions:
contents: write
jobs:
build_android:
name: Android
environment: build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version-file: pubspec.yaml
- name: Add keystore
run: echo "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > android/localmaterialnotes_keystore.jks
- name: Add key properties
run: echo "${{ secrets.ANDROID_KEY_PROPERTIES }}" > android/key.properties
- name: Build app
run: |
dart run build_runner build
flutter gen-l10n
flutter build apk --release
- name: Archive APK
uses: actions/upload-artifact@v4
with:
name: LocalMaterialNotes
path: build/app/outputs/flutter-apk/app-release.apk