mirror of
https://github.com/kiwix/kiwix-android-custom.git
synced 2025-09-13 14:50:33 -04:00
Refactored CD to upload the application on non-kiwix organization.
This commit is contained in:
parent
f68f6cfe47
commit
e9c8367b8d
21
.github/workflows/cd.yml
vendored
21
.github/workflows/cd.yml
vendored
@ -26,19 +26,26 @@ jobs:
|
|||||||
- 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
|
||||||
|
|
||||||
- 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
|
- name: Set tag variable
|
||||||
run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
|
run: echo "TAG=$(echo ${GITHUB_REF:10})" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install jq
|
- name: Install jq
|
||||||
run: sudo apt-get install -y jq
|
run: sudo apt-get install -y jq
|
||||||
|
|
||||||
|
- name: Preparing signing material
|
||||||
|
env:
|
||||||
|
keystore: ${{ secrets.keystore }}
|
||||||
|
playstore_json: ${{ secrets.PLAYSTORE_JSON }}
|
||||||
|
run: |
|
||||||
|
echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
|
||||||
|
non_kiwix_organization_tag='PLAYSTORE_JSON_'${TAG}
|
||||||
|
non_kiwix_playstore_json=${{ secrets[non_kiwix_organization_tag] || '' }}
|
||||||
|
if [ -n "$non_kiwix_playstore_json" ]; then
|
||||||
|
echo "$non_kiwix_playstore_json" > kiwix-android/playstore.json
|
||||||
|
else
|
||||||
|
echo "$playstore_json" > kiwix-android/playstore.json
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Should upload Bundle
|
- name: Should upload Bundle
|
||||||
run: |
|
run: |
|
||||||
cd ${TAG}
|
cd ${TAG}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user