-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (34 loc) · 1.05 KB
/
flutter.yml
File metadata and controls
44 lines (34 loc) · 1.05 KB
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
name: Flutter CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.27.1' # Updated to latest stable version
channel: 'stable'
- name: Install dependencies
run: flutter pub get
- name: Analyze project source
run: flutter analyze
- name: Build APK
run: flutter build apk --release
- name: Build App Bundle
run: flutter build appbundle --release
- name: Upload APK
uses: actions/upload-artifact@v3
with:
name: release-apk
path: build/app/outputs/flutter-apk/app-release.apk
- name: Upload App Bundle
uses: actions/upload-artifact@v3
with:
name: release-bundle
path: build/app/outputs/bundle/release/app-release.aab