-
-
Notifications
You must be signed in to change notification settings - Fork 141
74 lines (58 loc) · 2.32 KB
/
dart.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Dart
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:
jobs:
build_android:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
submodules: recursive
- uses: dart-lang/setup-dart@v1
with:
sdk: "3.1.4"
- uses: subosito/flutter-action@v2
with:
flutter-version: "3.13.8"
- name: setup credentials for namidaco
run: git config --global url.https://${{ secrets.PAT_ORG }}@github.com/namidaco/.insteadOf https://github.com/namidaco/
- name: setup credentials for MSOB7YY
run: git config --global url.https://${{ secrets.PAT }}@github.com/MSOB7YY/.insteadOf https://github.com/MSOB7YY/
- name: Git Submodule Update
run: git clone https://github.com/namidaco/namida-translations/ assets/language
- name: flutter clean
run: flutter clean
- name: Install dependencies
run: flutter pub get
- name: Modify applicationIdSuffix
run: sed -i 's/applicationIdSuffix ".release"/applicationIdSuffix ".snapshot"/' android/app/build.gradle
- name: Build APKs
run: flutter build apk --target-platform android-arm,android-arm64 --release --split-per-abi -v
# - name: Sign App Bundle
# uses: r0adkll/sign-android-release@v1
# id: sign_app
# with:
# releaseDirectory: build/app/outputs/flutter-apk/
# signingKeyBase64: ${{ secrets.ANDROID_KEYSTORE_FILE_BASE64 }}
# alias: ${{ secrets.ANDROID_SIGNING_KEY_ALIAS }}
# keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
# keyPassword: ${{ secrets.ANDROID_SIGNING_KEY_PASSWORD }}
- name: Upload arm64-v8a APK
uses: actions/upload-artifact@v3
with:
name: app-arm64-v8a-release
path: build/app/outputs/flutter-apk/app-arm64-v8a-release.apk
- name: Upload armeabi-v7a
uses: actions/upload-artifact@v3
with:
name: app-armeabi-v7a-release
path: build/app/outputs/flutter-apk/app-armeabi-v7a-release.apk