Skip to content

Commit 8754830

Browse files
Uploading bundle on playstore instead of apk
1 parent cede982 commit 8754830

File tree

2 files changed

+34
-35
lines changed

2 files changed

+34
-35
lines changed

.github/workflows/publish.yml

Lines changed: 33 additions & 33 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 Issue#3505 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^}ReleaseBundleWithPlayAssetDelivery"
4343
4444
publish_dummy_apk:
4545
runs-on: ubuntu-22.04

dwds/info.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"app_name": "Dwds",
33
"zim_url": "https://{{DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION}}@www.dwds.de/kiwix/f/dwds_de_dictionary_nopic_2023-09-12.zim",
4-
"enforced_lang": "de",
5-
"new": true
4+
"enforced_lang": "de"
65
}

0 commit comments

Comments
 (0)