DEV Community

Cover image for How to deploy a private GitHub repo on Netlify
Ifeanyi Chima
Ifeanyi Chima

Posted on • Updated on

How to deploy a private GitHub repo on Netlify

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.

BMC

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

Buy Me A Coffee

Thank you, Please follow me

linkedin.com/in/ifeanyi-thankgod-chima/
https://twitter.com/ifeanyiTchima

Top comments (1)

Collapse
 
tohodo profile image
Tommy

FYI I just did a test deployment from a private repo on Netlify and it seems this step is no longer necessary.