-
-
Notifications
You must be signed in to change notification settings - Fork 24
82 lines (70 loc) · 2.78 KB
/
mangaworld_build.yaml
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
75
76
77
78
79
80
81
82
name: MangaWorld Build
on:
workflow_dispatch:
workflow_call:
jobs:
mangaworld:
name: Generate MangaWorld APK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: echo $MANGA_GOOGLE_SERVICES_JSON > mangaworld/google-services.json
env:
MANGA_GOOGLE_SERVICES_JSON: ${{ secrets.MANGA_SERVICES_TWO }}
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: adopt
java-version: 17
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
add-job-summary-as-pr-comment: always
- name: Build MangaWorld artifacts
id: buildMangaApks
run: ./gradlew mangaworld:assembleRelease
- uses: kevin-david/[email protected]
name: Sign app APK
id: manga_sign
with:
releaseDirectory: mangaworld/build/outputs/apk/full/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- uses: kevin-david/[email protected]
name: Sign app APK
id: manga_sign_no_firebase
with:
releaseDirectory: mangaworld/build/outputs/apk/noFirebase/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- uses: kevin-david/[email protected]
name: Sign app APK
id: manga_sign_no_cloud_firebase
with:
releaseDirectory: mangaworld/build/outputs/apk/noCloudFirebase/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Clean up MangaWorld artifacts
run: |
cp ${{ steps.manga_sign.outputs.signedReleaseFile }} mangaworld-release.apk
cp ${{ steps.manga_sign_no_firebase.outputs.signedReleaseFile }} mangaworld-no-firebase-release.apk
cp ${{ steps.manga_sign_no_cloud_firebase.outputs.signedReleaseFile }} mangaworld-no-cloud-firebase-release.apk
- uses: actions/upload-artifact@v4
with:
name: Signed Manga App
path: mangaworld-release.apk
- uses: actions/upload-artifact@v4
with:
name: Signed Manga No Firebase App
path: mangaworld-no-firebase-release.apk
- uses: actions/upload-artifact@v4
with:
name: Signed Manga No Cloud Firebase App
path: mangaworld-no-cloud-firebase-release.apk