Skip to content

Commit

Permalink
Improved the getting secret in CD.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliDeveloper committed Oct 31, 2024
1 parent 9b12a80 commit 2d10434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ jobs:
env:
keystore: ${{ secrets.keystore }}
playstore_json: ${{ secrets.PLAYSTORE_JSON }}
non_kiwix_organization_json: ${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] }}
run: |
echo "$keystore" | base64 -d > kiwix-android/kiwix-android.keystore
if [ -n "${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] }}" ]; then
if [ -n "$non_kiwix_organization_json" ]; then
echo "It is non-kiwix organization json file"
echo "${{ secrets[env.NON_KIWIX_ORGANIZATION_TAG] }}" > kiwix-android/playstore.json
else
Expand Down

0 comments on commit 2d10434

Please sign in to comment.