-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 884 Bytes
/
main.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
name: Lokarasa App
on:
push:
branches:
- main
tags:
- "release-app"
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
channel: "stable"
- run: flutter pub get
- run: flutter analyze .
- run: flutter build apk --flavor production -t lib/main_production.dart
- uses: ncipollo/release-action@v1
with:
artifacts: "build/app/outputs/apk/production/release/*.apk"
commit: main
tag: "release-app"
allowUpdates: true
- uses: actions/upload-artifact@v2
with:
name: release-apk
path: |
build/app/outputs/apk/production/release/