Skip to content

Commit bc268ba

Browse files
add github action to build apk on release (#60)
1 parent 9f64f71 commit bc268ba

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Release Flutter APK
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
15+
- name: Setup Flutter
16+
uses: subosito/flutter-action@v2
17+
with:
18+
flutter-version: '3.22.0'
19+
20+
- name: Install dependencies
21+
run: flutter pub get
22+
- name: Generate l10n
23+
run: flutter gen-l10n
24+
- name: Build APK
25+
run: flutter build apk --release
26+
27+
- name: Upload APK
28+
uses: actions/upload-artifact@v2
29+
with:
30+
name: run-flutter-run.apk
31+
path: build/app/outputs/flutter-apk/app-release.apk

0 commit comments

Comments
 (0)