-
-
Notifications
You must be signed in to change notification settings - Fork 7
39 lines (32 loc) · 883 Bytes
/
main.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
name: Build Android
on:
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Test connection
run: curl "https://storage.googleapis.com/flutter_infra_release/releases/releases_linux.json"
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Java environment
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: "17"
- name: Set up Flutter environment
uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Build APK and App Bundle
run: |
flutter pub get
dart analyze
flutter build apk --debug
flutter build appbundle --debug