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

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

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.

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay