Skip to content

Commit

Permalink
Uploading bundle on playstore instead of apk
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper committed Oct 17, 2023
1 parent cede982 commit 8754830
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 35 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,39 +7,39 @@ on:
- main

jobs:
# publish:
# runs-on: ubuntu-22.04
#
# steps:
# - name: Retrieving custom app configuration
# uses: actions/checkout@v3
#
# - name: Retrieving Kiwix Android source code
# run: git clone --depth=1 --single-branch --branch develop https://github.com/kiwix/kiwix-android.git
#
# - name: Copying custom app configuration into Kiwix Android code base
# run: ./copy_files_to_kiwix_android.sh
#
# - name: Preparing signing material
# env:
# keystore: ${{ secrets.keystore }}
# playstore_json: ${{ secrets.PLAYSTORE_JSON }}
# run: |
# echo "$playstore_json" > kiwix-android/playstore.json
# echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
#
# - name: Set tag variable
# run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
#
# - name: Publishing app to Google Play
# env:
# KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
# KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
# KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
# DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION: ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
# run: |
# cd kiwix-android
# eval "./gradlew publish${TAG^}ReleaseApkWithExpansionFile"
publish:
runs-on: ubuntu-22.04

steps:
- name: Retrieving custom app configuration
uses: actions/checkout@v3

- name: Retrieving Kiwix Android source code
run: git clone --depth=1 --single-branch --branch Issue#3505 https://github.com/kiwix/kiwix-android.git

- name: Copying custom app configuration into Kiwix Android code base
run: ./copy_files_to_kiwix_android.sh

- name: Preparing signing material
env:
keystore: ${{ secrets.keystore }}
playstore_json: ${{ secrets.PLAYSTORE_JSON }}
run: |
echo "$playstore_json" > kiwix-android/playstore.json
echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
- name: Set tag variable
run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV

- name: Publishing app to Google Play
env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION: ${{ secrets.DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION }}
run: |
cd kiwix-android
eval "./gradlew publish${TAG^}ReleaseBundleWithPlayAssetDelivery"
publish_dummy_apk:
runs-on: ubuntu-22.04
Expand Down
3 changes: 1 addition & 2 deletions dwds/info.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"app_name": "Dwds",
"zim_url": "https://{{DWDS_HTTP_BASIC_ACCESS_AUTHENTICATION}}@www.dwds.de/kiwix/f/dwds_de_dictionary_nopic_2023-09-12.zim",
"enforced_lang": "de",
"new": true
"enforced_lang": "de"
}

0 comments on commit 8754830

Please sign in to comment.