'keystore load: null using the r0adkll/sign-android-release GitHub Action

I am using the r0adkll/sign-android-release GitHub Action, but am getting a

Run r0adkll/sign-android-release@v1
Preparing to sign key @ /home/runner/work/myApp/myApp/mobile/build/outputs/bundle/release with signing key
Found 1 release files.
/opt/hostedtoolcache/Java_Zulu_jdk/8.0.322-6/x64/bin/jarsigner -keystore /home/runner/work/myApp/myApp/mobile/build/outputs/bundle/release/signingKey.jks -storepass *** -keypass *** /home/runner/work/myApp/myApp/mobile/build/outputs/bundle/release/mobile-release.aab ***
jarsigner error: java.lang.RuntimeException: keystore load: null
Error: The process '/opt/hostedtoolcache/Java_Zulu_jdk/8.0.322-6/x64/bin/jarsigner' failed with exit code 1

I have followed these directions and these directions. I saw another post on this issue which I already had done:

  • SIGNING_KEY — base64 text of your Keystore file
  • ALIAS — your alias name
  • KEY_STORE_PASSWORD — password of your Keystore
  • KEY_PASSWORD — your key password

My code block looks like:

- name: Sign Mobile Android release
  uses: r0adkll/sign-android-release@v1
  with:
    releaseDirectory: /home/runner/work/myApp/myApp/mobile/build/outputs/bundle/release
    signingKeyBase64: ${{ secrets.SIGNING_KEY }}
    alias: ${{ secrets.ALIAS }}
    keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
    keyPassword: ${{ secrets.KEY_PASSWORD }}

I tested all the passwords using Android Studio's interactive Generate Signed Bundle / APK function.

I pulled the path from the keystore path, and ran this function on the file:

openssl base64 < keystore.jks | tr -d '\n' | tee keystore.jks.base64.txt

I copied the contents of the keystore.jks.base64.txt into the repository SIGNING_KEY secret.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source