DEV Community

Discussion on: 3 ways to use environment Variables in Rust

Collapse
 
hayitbek_yusupov_a82d06f3 profile image
Hayitbek Yusupov

What should I do if I put the .env file to .gitignore and build my app using Github Actions?

Collapse
 
francescoxx profile image
Francesco Ciulla

"If your .env file is in .gitignore and you're using GitHub Actions, add your environment variables as Secrets in your repository settings on GitHub. Then, reference these secrets in your workflow file to use them securely during the build process."