-
-
Notifications
You must be signed in to change notification settings - Fork 24
82 lines (70 loc) · 2.83 KB
/
animeworldtv_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: AnimeWorld Tv Build
on:
workflow_dispatch:
workflow_call:
jobs:
animeworld:
name: Generate AnimeWorldTV APK
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- run: echo $ANIME_GOOGLE_SERVICES_JSON > animeworldtv/google-services.json
env:
ANIME_GOOGLE_SERVICES_JSON: ${{ secrets.ANIME_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 AnimeWorld artifacts
id: buildAnimeApks
run: ./gradlew animeworldtv:assembleRelease
- uses: kevin-david/[email protected]
name: Sign app APK
id: anime_tv_sign
with:
releaseDirectory: animeworldtv/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: anime_tv_sign_no_firebase
with:
releaseDirectory: animeworldtv/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: anime_tv_sign_no_cloud_firebase
with:
releaseDirectory: animeworldtv/build/outputs/apk/noCloudFirebase/release
signingKeyBase64: ${{ secrets.SIGNING_KEY }}
alias: ${{ secrets.ALIAS }}
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
- name: Clean up AnimeWorld artifacts
run: |
cp ${{ steps.anime_tv_sign.outputs.signedReleaseFile }} animeworldtv-release.apk
cp ${{ steps.anime_tv_sign_no_firebase.outputs.signedReleaseFile }} animeworldtv-no-firebase-release.apk
cp ${{ steps.anime_tv_sign_no_cloud_firebase.outputs.signedReleaseFile }} animeworldtv-no-cloud-firebase-release.apk
- uses: actions/upload-artifact@v4
with:
name: Signed Anime Tv App
path: animeworldtv-release.apk
- uses: actions/upload-artifact@v4
with:
name: Signed Anime Tv No Firebase App
path: animeworldtv-no-firebase-release.apk
- uses: actions/upload-artifact@v4
with:
name: Signed Anime Tv No Cloud Firebase App
path: animeworldtv-no-cloud-firebase-release.apk