Skip to content

Commit b3fbc01

Browse files
Publishing dummy bundle instead of APK
1 parent 0c15e54 commit b3fbc01

File tree

1 file changed

+42
-42
lines changed

1 file changed

+42
-42
lines changed

.github/workflows/publish.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,39 @@ on:
77
- main
88

99
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"
4343

4444
publish_dummy_apk:
4545
runs-on: ubuntu-22.04
@@ -49,7 +49,7 @@ jobs:
4949
uses: actions/checkout@v3
5050

5151
- 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
5353

5454
- name: Copying custom app configuration into Kiwix Android code base
5555
run: ./copy_files_to_kiwix_android.sh
@@ -74,25 +74,25 @@ jobs:
7474
exit 0 # Skip the job as APK is already published on play store
7575
fi
7676
77-
- name: Generate dummy APK
77+
- name: Generate dummy Bundle
7878
env:
7979
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
8080
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
8181
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
8282
DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION: ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
8383
run: |
8484
cd kiwix-android
85-
eval "./gradlew assemble${TAG^}Release"
85+
eval "./gradlew bundle${TAG^}Release"
8686
8787
88-
- name: Get APK path
89-
id: apk-path
88+
- name: Get Bundle path
89+
id: bundle-path
9090
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"
9393
9494
- name: Upload APK as an artifact
9595
uses: actions/upload-artifact@v2
9696
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

Comments
 (0)