#How to pass .env for actual app build in GitHub action deploy?

2 messages · Page 1 of 1 (latest)

floral basalt
#

This isn't the env for the Github action, but the env for the actual app. It works fine locally and when I try to build, but idk how to pass in a .env file to a github action.

Would I pass it as a secret and then have a step that pushes that secret to the folder? Any example of this somewhere

#

Gonna try this realquick. It might work

    - name: Create .env file
      run: echo "${{ secrets.MY_SECRET }}" > .env