Hi React experts (especially with CI/CD knowledge),
Please read this carefully and provide a possible solution.
Background:
- I have created a react app using 'create-react-app'
- I have created 3 .env files for different environments -
.env.development,.env.stagingand.env.production. - For security reasons, we should not push those .env files to public Github repo
- I have taken the necessary steps with the .gitignore file
Now I want to deploy my code from Github directly to AWS S3 bucket with those env variables set.
How does one go about doing this?
Note: I have not pushed my .env files to Github. So, my Github repo doesn't contain those .env files.