-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (38 loc) · 1.02 KB
/
ci.yaml
File metadata and controls
47 lines (38 loc) · 1.02 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
45
46
47
name: Build Flutter APK
on:
push:
branches:
- main
- flutter
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: flutter_app
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.35.6'
cache: true
- name: Cache Flutter packages
uses: actions/cache@v4
with:
path: |
~/.pub-cache
~/.dart-tool
key: ${{ runner.os }}-pub-${{ hashFiles('flutter_app/pubspec.lock') }}
restore-keys: |
${{ runner.os }}-pub-
- name: Install dependencies
run: flutter pub get
- name: Build release APK
run: flutter build apk --release
- name: Upload APK artifact
uses: actions/upload-artifact@v4
with:
name: app-release-apk
path: flutter_app/build/app/outputs/flutter-apk/app-release.apk