DEV Community

Shweta
Shweta

Posted on

Publish site with Netlify and GitHub repo

I am writing this because this is the same problem I keep facing again and again when I am deploying a site through GitHub repo and Netlify.

Here to not the same happening again and smooth process.

Adding locally hosted code to GitHub Using Git
The GitHub docs explains it simply.

After choosing the repo from Netlify and starting the deploy process and getting a error, in build and deploy -> build settings -> in build command write

CI= npm run build

Image description

and it works and the site is deployed!!

Top comments (2)

Collapse
 
naucode profile image
Al - Naucode

Hey, that was a nice read, you got my follow, keep writing πŸ˜‰

Collapse
 
shweta200126 profile image
Shweta

Thank you!