0

I have an android project with GitHub actions which needs some key in GitHub secrets to successfully build. I wonder how to access Github secrets key from my project code like this?

enter image description here

I have tried to assign the key to local properties on my yml config files (android.yml) based on this article

enter image description here

but it's still failed to build because BASE_URL still not detected (workflow)

enter image description here

galihif
  • 310
  • 1
  • 8

1 Answers1

0

you need to update the build.yml file with an additional step to put the secret into a new local.properties file but make sure this step is done after checking out the code. the link below has all the detailed steps :

https://blog.jakelee.co.uk/accessing-android-app-secret-from-github-actions-using-gradle/

TahirRaza
  • 81
  • 8