Skip to content

Commit

Permalink
Improved the CD to get the secret.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper committed Oct 31, 2024
1 parent 5affd72 commit 77ae126
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ jobs:
playstore_json: ${{ secrets.PLAYSTORE_JSON }}
run: |
echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
non_kiwix_playstore_json=${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] || '' }}
if [ -n "$non_kiwix_playstore_json" ]; then
echo "$non_kiwix_playstore_json" > kiwix-android/playstore.json
if [ -n "${{ secrets[env.non_kiwix_organization_tag] }}" ]; then
echo "${{ secrets[env.non_kiwix_organization_tag] }}" > kiwix-android/playstore.json
else
echo "$playstore_json" > kiwix-android/playstore.json
fi
Expand Down

0 comments on commit 77ae126

Please sign in to comment.