Skip to content

Deploy to GitHub Pages

This is the moment of truth! Let’s put your project on the internet where anyone can see it.

Let’s make sure everything is ready:

  1. Open GitHub Desktop
  2. Click on ‘Fetch Origin
  3. Check that the Changes tab is empty (all changes committed)

If everything is in order, then you are ready to merge your changes to the main codebase.

Now let’s move your local code to the main branch.

  1. Open GitHub Desktop
  2. There should be a button to ‘Preview Pull Request
  3. Click on that and it will take you to Github.com.
  4. Fill in the description of the Pull Request and then click on ‘Create Pull Request
  5. Github will run some checks and when they complete, you can click on the final ‘Merge Branch’ and complete the merger.
If you encounter any errors here, paste those errors in Claude so that you can debug them.

GitHub usually needs a minute or two to build and deploy your site. Type it in your browser:

https://YOUR-USERNAME.github.io/YOUR-REPO-NAME/

🎉 Congratulations! Your project is live on the internet!

Now after seeing the site live on the internet, you may need to make changes.

It’s recommended to start a new chat in Claude code for every new change as Claude tends to create a new branch to work in. Incase you create a branch on Github Desktop, Claude Code will not be able to access it.

To make changes you can repeat the steps mentioned in ‘Making Changes’.

The deployment has completed

This is an optional step incase you need to debug.

  1. Check Actions tab - See if the deployment is still running
  2. Check if there are any errors pointed out.
  • Check the URL - Make sure you’re using the correct repository name
  • Check your files - Make sure you have an index.html file in the root of your repository
  • Wait a bit - First deployment can take up to 10 minutes
  • Check browser console for errors (F12 → Console tab)
  • Check file paths - Links to CSS/JS might need updating
  • Case sensitivity - Styles.css is different from styles.css
  • Wait 2-5 minutes - GitHub Pages caches aggressively
  • Hard refresh - Ctrl + Shift + R (Windows) or Cmd + Shift + R (Mac)
  • Check Actions tab - See if the deployment is still running
💡 Pro Tip: You can use a custom domain (like "yourname.com") instead of the github.io address. That's a bit more advanced, but GitHub has great documentation if you're interested!
✅ Checkpoint

Your project is LIVE on the internet! You just deployed a real website. 🎉

You’ve accomplished something amazing - going from zero to a deployed website!

Take a moment to appreciate how far you’ve come:

  • ✅ Created a GitHub account
  • ✅ Installed Claude Code
  • ✅ Learned Git basics
  • ✅ Built a real project with AI
  • ✅ Tested it locally
  • ✅ Deployed it to the internet

In the next sections, we’ll level up your skills by:

  • Learning to use the Claude API directly
  • Adding analytics to track visitors