Skip to content

Commit ec2cabc

Browse files
committed
Fix Android APK signing (keystore format) in CI build job
1 parent e325615 commit ec2cabc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,8 @@ jobs:
169169
env:
170170
KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
171171
run: |
172-
echo "$KEYSTORE_BASE64" | base64 --decode > android/keystore-orig.jks
172+
printf '%s' "$KEYSTORE_BASE64" | base64 --decode > android/keystore-orig.jks
173+
[ -s android/keystore-orig.jks ] || { echo "ERROR: ANDROID_KEYSTORE_BASE64 secret is empty or not set"; exit 1; }
173174
keytool -importkeystore \
174175
-srckeystore android/keystore-orig.jks \
175176
-destkeystore android/keystore.jks \

0 commit comments

Comments
 (0)