If you are a software developer and you want to make your GitHub repository private and deploy it to netlify I will show you how to do that in this article, we will learn how to deploy a private repository to Netlify.
1. Generate deploy key
In Netlify, go to the app, site settings > Build & deploy > Continuous Deployment > Deploy Key
click on generate deploy key
copy the deploy key
2. Go to the GitHub Repo you want to deploy
go to, settings > Deploy Keys
paste the deploy key and save
3. Make the GitHub Repo private
Inside the Repo that you want to deploy, go to settings > change visibility
make the repo private
4. Go back to Netlify
- re-deploy the app
Thank you, Please follow me
Top comments (1)
FYI I just did a test deployment from a private repo on Netlify and it seems this step is no longer necessary.