Skip to content

Commit

Permalink
Improved our cd to get the playStore json file from secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper committed Oct 31, 2024
1 parent 8c3b3b2 commit 686b873
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,21 @@ jobs:
- name: Install jq
run: sudo apt-get install -y jq

- name: Determine playstore.json file
run: |
non_kiwix_organization_tag="PLAYSTORE_JSON_${TAG}"
if [ -n "${{ secrets[non_kiwix_organization_tag] }}" ]; then
echo "CUSTOM_PLAYSTORE_JSON=${{ secrets[non_kiwix_tag] }}" >> $GITHUB_ENV
else
echo "CUSTOM_PLAYSTORE_JSON=${{ secrets.PLAYSTORE_JSON }}" >> $GITHUB_ENV
- name: Preparing signing material
env:
keystore: ${{ secrets.keystore }}
playstore_json: ${{ secrets.PLAYSTORE_JSON }}
playstore_json: ${{ env.CUSTOM_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
echo "$playstore_json" > kiwix-android/playstore.json
- name: Should upload Bundle
run: |
Expand Down

0 comments on commit 686b873

Please sign in to comment.