Follow the Token doc then continue below.
- Ensure you have the repo or a fork in your GitHub account.
- Add the repo to your Netlify account.
- Edit the deploy environment variables - add
GITHUB_TOKEN
and use your value. - Open the deployed URL.
Notes on the build command in netlify.toml config:
- The Jekyll install is automatic, so just the JS install is needed.
- An
.env
file is not needed here, since using Netlify secrets. - Netlify does not use Bundler.
Note that Node is already available on Netlify.
Note that this does not build to GitHub Pages.
You need to add a GitHub Actions workflow instead, which handles install and run steps and use of the token.