7
7
- main
8
8
9
9
jobs :
10
- publish :
11
- runs-on : ubuntu-22.04
12
-
13
- steps :
14
- - name : Retrieving custom app configuration
15
- uses : actions/checkout@v3
16
-
17
- - name : Retrieving Kiwix Android source code
18
- run : git clone --depth=1 --single-branch --branch develop https://github.com/kiwix/kiwix-android.git
19
-
20
- - name : Copying custom app configuration into Kiwix Android code base
21
- run : ./copy_files_to_kiwix_android.sh
22
-
23
- - name : Preparing signing material
24
- env :
25
- keystore : ${{ secrets.keystore }}
26
- playstore_json : ${{ secrets.PLAYSTORE_JSON }}
27
- run : |
28
- echo "$playstore_json" > kiwix-android/playstore.json
29
- echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
30
-
31
- - name : Set tag variable
32
- run : echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
33
-
34
- - name : Publishing app to Google Play
35
- env :
36
- KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
37
- KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
38
- KEY_STORE_PASSWORD : ${{ secrets.KEY_STORE_PASSWORD }}
39
- DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION : ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
40
- run : |
41
- cd kiwix-android
42
- eval "./gradlew publish${TAG^}ReleaseApkWithExpansionFile"
10
+ # publish:
11
+ # runs-on: ubuntu-22.04
12
+ #
13
+ # steps:
14
+ # - name: Retrieving custom app configuration
15
+ # uses: actions/checkout@v3
16
+ #
17
+ # - name: Retrieving Kiwix Android source code
18
+ # run: git clone --depth=1 --single-branch --branch develop https://github.com/kiwix/kiwix-android.git
19
+ #
20
+ # - name: Copying custom app configuration into Kiwix Android code base
21
+ # run: ./copy_files_to_kiwix_android.sh
22
+ #
23
+ # - name: Preparing signing material
24
+ # env:
25
+ # keystore: ${{ secrets.keystore }}
26
+ # playstore_json: ${{ secrets.PLAYSTORE_JSON }}
27
+ # run: |
28
+ # echo "$playstore_json" > kiwix-android/playstore.json
29
+ # echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
30
+ #
31
+ # - name: Set tag variable
32
+ # run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
33
+ #
34
+ # - name: Publishing app to Google Play
35
+ # env:
36
+ # KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
37
+ # KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
38
+ # KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
39
+ # DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION: ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
40
+ # run: |
41
+ # cd kiwix-android
42
+ # eval "./gradlew publish${TAG^}ReleaseApkWithExpansionFile"
43
43
44
44
publish_dummy_apk :
45
45
runs-on : ubuntu-22.04
49
49
uses : actions/checkout@v3
50
50
51
51
- name : Retrieving Kiwix Android source code
52
- run : git clone --depth=1 --single-branch --branch develop https://github.com/kiwix/kiwix-android.git
52
+ run : git clone --depth=1 --single-branch --branch header_issue_in_custom_application https://github.com/kiwix/kiwix-android.git
53
53
54
54
- name : Copying custom app configuration into Kiwix Android code base
55
55
run : ./copy_files_to_kiwix_android.sh
@@ -74,25 +74,25 @@ jobs:
74
74
exit 0 # Skip the job as APK is already published on play store
75
75
fi
76
76
77
- - name : Generate dummy APK
77
+ - name : Generate dummy Bundle
78
78
env :
79
79
KEY_ALIAS : ${{ secrets.KEY_ALIAS }}
80
80
KEY_PASSWORD : ${{ secrets.KEY_PASSWORD }}
81
81
KEY_STORE_PASSWORD : ${{ secrets.KEY_STORE_PASSWORD }}
82
82
DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION : ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
83
83
run : |
84
84
cd kiwix-android
85
- eval "./gradlew assemble ${TAG^}Release"
85
+ eval "./gradlew bundle ${TAG^}Release"
86
86
87
87
88
- - name : Get APK path
89
- id : apk -path
88
+ - name : Get Bundle path
89
+ id : bundle -path
90
90
run : |
91
- APK_PATH ="kiwix-android/custom/build/outputs/apk /${TAG}/release/*universal*.apk "
92
- echo "::set-output name=apk_path ::$APK_PATH "
91
+ BUNDLE_PATH ="kiwix-android/custom/build/outputs/bundle /${TAG}Release/*${TAG}*.aab "
92
+ echo "::set-output name=bundle_path ::$BUNDLE_PATH "
93
93
94
94
- name : Upload APK as an artifact
95
95
uses : actions/upload-artifact@v2
96
96
with :
97
- name : " Dummy APK for play store"
98
- path : ${{ steps.apk -path.outputs.apk_path }}
97
+ name : " Dummy Bundle for play store"
98
+ path : ${{ steps.bundle -path.outputs.bundle_path }}
0 commit comments