Changed branch to test publication and replace secrets in publish.yml file

This commit is contained in:
MohitMaliFtechiz 2023-04-13 16:15:29 +05:30
parent 6c8599ea71
commit aaf91d910f

View File

@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Retrieving Kiwix Android source code - name: Retrieving Kiwix Android source code
run: git clone --single-branch --branch develop 91a999f https://github.com/kiwix/kiwix-android.git run: git clone --single-branch --branch FixesIssue#2961 https://github.com/kiwix/kiwix-android.git
- name: Copying custom app configuration into Kiwix Android code base - name: Copying custom app configuration into Kiwix Android code base
run: ./copy_files_to_kiwix_android.sh run: ./copy_files_to_kiwix_android.sh
@ -21,12 +21,11 @@ jobs:
- name: Preparing signing material - name: Preparing signing material
env: env:
keystore: ${{ secrets.keystore }} keystore: ${{ secrets.keystore }}
google_json: ${{ secrets.PLAYSTORE_JSON }} playstore_json: ${{ secrets.PLAYSTORE_JSON }}
run: | run: |
echo "$google_json" | base64 -d > kiwix-android/google.json echo "$playstore_json" | base64 -d > kiwix-android/playstore.json
echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
- name: Publishing app to Google Play - name: Publishing app to Google Play
env: env:
KEY_ALIAS: ${{ secrets.KEY_ALIAS }} KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
@ -35,4 +34,4 @@ jobs:
run: | run: |
cd kiwix-android cd kiwix-android
echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
eval "./gradlew publish${TAG^}ReleaseApkWithExpansionFile" eval "./gradlew publish${TAG^}ReleaseApkWithExpansionFile --scan"