Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use environment variables from github secret? #557

Open
Joe-ChenZ opened this issue Dec 22, 2022 · 1 comment
Open

How to use environment variables from github secret? #557

Joe-ChenZ opened this issue Dec 22, 2022 · 1 comment

Comments

@Joe-ChenZ
Copy link

Hi all! thanks for making this wonderful template. However, I wasn't sure how to use github secrets to replace hard-coded tokens and usernames. I looked at some of the resources online and it seems like we need to use Powershell (I am using Windows) to fetch env var from GitHub. But the website seems to be built from the remote instead of the local repo. It doesn't seem like any of those scripts are being pushed to the remote?

Can you give me a brief run-through of how to do this?

Thanks

@Aladdin4u
Copy link

you are to create .env file inside the root directory and copy the file inside the env.example into it. change REACT_APP_GITHUB_TOKEN and GITHUB_USERNAME to generated the key from your GitHub profile and username

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants