-
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (43 loc) · 1.45 KB
/
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
36
37
38
39
40
41
42
43
44
on:
push:
pull_request:
jobs:
build_android:
name: Build Android Artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v2
with:
distribution: 'zulu'
java-version: '11'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.9'
- name: Install packages
run: flutter pub get
- name: Generate localizations
run: flutter gen-l10n
- name: Generate configs
run: dart run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/intnDefs.dart lib/l10n/*.arb && flutter pub run build_runner build --delete-conflicting-outputs
- name: Build APK
run: flutter build apk
- name: Build App BUndle
run: flutter build appbundle
build_ios:
name: Build IOS Artifact
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.16.9'
- name: Install packages
run: flutter pub get
- name: Generate localizations
run: flutter gen-l10n
- name: Generate configs
run: dart run intl_translation:generate_from_arb --output-dir=lib/l10n --no-use-deferred-loading lib/Frontend/intnDefs.dart lib/l10n/*.arb && flutter pub run build_runner build --delete-conflicting-outputs
- name: Build app
run: flutter build ios --release --no-codesign