Deploy Your Site: GitHub, GitHub Desktop, and Netlify Guide
Introduction
Welcome to MikesBlogDesign! This beginner-friendly guide walks you through creating a GitHub repository, syncing it with GitHub Desktop, connecting to Netlify, and deploying your site. Whether you're launching a portfolio or a blog, this tutorial has you covered.
Build command: Leave blank for static files or enter framework-specific command (e.g., npm run build).
Publish directory: Use / or your build folder (e.g., dist).
Click Deploy site. Netlify provides a unique URL.
Step 7: Automatic Updates
Edit files in your local repository folder.
In GitHub Desktop:
Review and commit changes.
Push to GitHub with Push origin.
Netlify auto-deploys updates from the main branch.
Troubleshooting
GitHub Desktop issues: Ensure files are in the correct folder.
Netlify build fails: Check build settings and logs.
No updates: Verify Netlify’s repository and branch settings.
Optional: Custom Domain
In Netlify, go to Site configuration > Domain management.
Add your domain and configure DNS.
Wait for DNS propagation (up to 24 hours).
Conclusion
You’ve set up a GitHub repository, synced it with GitHub Desktop, connected to Netlify, and enabled automatic deployments. Share your live site with the world!