DEV Community

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

Posted on • Edited on

8 1 1 1 1

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

Image of Timescale

🚀 pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applications—without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read more →

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.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up