Skip to content

Commit

Permalink
decode to multiline string
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhpalp committed Jul 26, 2023
1 parent d47b967 commit 9f49786
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,12 @@ jobs:
working-directory: ${{ env.ANGULAR_DIRECTORY }}/android
run: chmod +x ./gradlew

- name: Decode Google Play JSON Key
id: decoder
env:
GOOGLE_PLAY_JSON_BASE64: ${{ secrets.GOOGLE_PLAY_JSON_KEY }}
run: |
decodedKey=$(echo "$GOOGLE_PLAY_JSON_BASE64" | base64 --decode --ignore-garbage)
echo "::set-output name=google_play_json_key::$decodedKey"
- name: Decode Service Account Key JSON File
uses: timheuer/base64-to-file@v1
id: service_account_json_file
with:
fileName: "serviceAccount.json"
encodedString: ${{ secrets.GOOGLE_PLAY_JSON_KEY }}

- uses: sparkfabrik/[email protected]
name: Build APK and upload to Play Store
Expand All @@ -163,7 +162,7 @@ jobs:
keystore-content: ${{ secrets.KEYSTORE_CONTENT }}
keystore-password: ${{ secrets.KEYSTORE_PASSWORD }}
keystore-alias: ${{ secrets.KEYSTORE_ALIAS }}
json-key-data: ${{ steps.decoder.outputs.google_play_json_key }}
json-key-data: ${{ steps.service_account_json_file.outputs.filePath }}
upload-to-play-store: ${{ inputs.upload_to_play_store }}
project-path: "${{ env.ANGULAR_DIRECTORY }}/android/"
output-path: wfnews-release-${{ steps.vars.outputs.short_sha }}.apk
Expand Down

0 comments on commit 9f49786

Please sign in to comment.