Skip to content

Commit

Permalink
Improved the retrieving the secrets from github in our CD. (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitMaliFtechiz authored Oct 31, 2024
2 parents 4bd138f + d3dcd2e commit dd955f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ jobs:

- name: Set non-kiwix organization tag
run: |
non_kiwix_organization_tag="PLAYSTORE_JSON_${TAG}"
non_kiwix_organization_tag="PLAYSTORE_JSON_${TAG^^}"
echo "NON_KIWIX_ORGANIZATION_TAG=${non_kiwix_organization_tag}" >> $GITHUB_ENV
- name: Preparing signing material
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
echo "${{ secrets[env.non_kiwix_organization_tag] }}" > kiwix-android/playstore.json
if [ -n "$non_kiwix_organization_json" ]; then
echo "$non_kiwix_organization_json" > kiwix-android/playstore.json
else
echo "$playstore_json" > kiwix-android/playstore.json
fi
Expand Down

0 comments on commit dd955f3

Please sign in to comment.