Closed PainterHalver closed 1 year ago
Welp, me bad. Turns out I should set the Repository secrets
instead of Environment secrets
@PainterHalver @ilharp
I've added ANDROID_SIGNING_KEY
in the repository secret under actions section of Secrets and variables
sidebar of which it contains the base64 of my my-upload-keystore.keystore
file. I generated base64 encoded text by running
openssl base64 < my-upload-key.keystore | tr -d '\n' | tee my-upload-key.keystore.base64.txt
But I'm still getting the same error as above. What could possibly go wrong in my case? Could you guys please help me to resolve it?
When using strings that look alike, I always recommend copy-pasting instead of typing.
Thanks @ilharp for the quick reply. Now it is working for me too. The issue was the secret env variables need to be defined as required in the workflow (like in your above screenshot says "Required").
...
on:
workflow_dispatch
secrets:
ANDROID_SIGNING_KEY:
required: true
...
Not sure if this needs to be mentioned in your Readme.md
file?
In theory, you only need to define these secrets in Repository Secrets
, and then reference them in job.steps
. No other additional configuration is required.
You can search other repositories for usage examples. For example:
Yeah you're right. Doesn't require anything after setting secrets to the github action. Actually my workflow is a bit different than others or you're mentioned linked projects. I've got several workflow files for specific platform (android, ios, ...) and I'd been trying to get ANDROID_SIGNING_KEY
value from the workflow_call
workflow file. And that could've been the issue I think. In the workflow_dispatch
file, getting secrets just work.
Thanks for your help. All clear now. 👍
I've set the secrets and checked that decoded base64 keystore is exactly the same as the original, but still cannot find signing key.
yml:
All secrets set:![image](https://user-images.githubusercontent.com/73751932/198812497-c36f1363-ba63-42e2-b5ad-f0cda793e727.png)