DEV Community

Discussion on: Hide your api keys from your android manifest file with Flutter using local.properties

Collapse
 
nb9960 profile image
Nishtha Bodani

How to delare it in yml so that github actions run properly?

Collapse
 
no2s14 profile image
Steve

You can add a step in your build job like this :

jobs:
    build: 
        # your other scripts here...
        - name: Inject local.properties value
               env:
                     VALUE: ${{ secrets.VALUE }}
                     run: echo VALUE="$VALUE" > ./local.properties
Enter fullscreen mode Exit fullscreen mode