-
-
Notifications
You must be signed in to change notification settings - Fork 36
35 lines (32 loc) · 971 Bytes
/
build-apk.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
name: Build Android apk
on:
[workflow_dispatch]
permissions:
contents: read
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'adopt'
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
flutter-version: '3.16.x'
- run: curl https://textual.ru/presets.db -o assets/presets.db
- run: echo '{}' > lib/l10n/app_zh.arb
- run: flutter clean
- run: flutter pub get
- run: flutter test
- run: flutter build apk --flavor beta
- name: Rename APK
run: mv build/app/outputs/flutter-apk/app-beta-release.apk build/app/outputs/flutter-apk/EveryDoor-$(git log -n 1 --format='%h').apk
- name: Archive APK
uses: actions/upload-artifact@v4
with:
name: everydoor-apk
path: build/app/outputs/flutter-apk/EveryDoor*.apk
retention-days: 90