Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .github/workflows/react-native-cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,14 @@ jobs:
- name: 📋 Create Credentials File
if: ${{ matrix.platform == 'android' }}
run: |
set -euo pipefail
# eas-cli validates the whole credentials.json even for a single-platform
# build, so drop the unused .ios block rather than let it fail the schema.
printf '%s' "$CREDENTIALS_JSON_BASE64" | base64 -d \
| jq --arg ks "$RUNNER_TEMP/keystore.jks" '.android.keystore.keystorePath = $ks' > credentials.json
| jq --arg ks "$RUNNER_TEMP/keystore.jks" \
'del(.ios) | .android.keystore.keystorePath = $ks' > credentials.json
jq -e '.android.keystore | .keystorePath and .keystorePassword and .keyAlias and .keyPassword' \
credentials.json > /dev/null

- name: 📋 Create Google Json File for iOS
if: ${{ matrix.platform == 'ios' }}
Expand Down
Loading