Deploy your Website to GitHub Pages

In this lesson, you’ll learn how to publish your website to GitHub Pages.

GitHub Pages setup

As a first step, go to Settings > Pages:

GitHub Settings > Pages

Then, configure your site to be built from the master branch:

Selecting the master branch

Once you save, you’ll get this warning:

Caution: This repository is private but the published site will be public.

This is expected. If you wait a minute and refresh the page, you’ll see that your site is live.

Callout showing that the website is live

As you can see, the site is published to a URL that looks like this:

  • https://your-username.github.io/your-repo/

This means that you can already share the URL in public. 🚀

Serve your site from a Custom Domain

GitHub Pages allows you to serve your site from a custom domain:

Callout showing that the website is live

If you want to do this, you’ll need to purchase a domain name from a registrar such as Namecheap.

Then, you can follow the instructions on this page to set everything up:

However, this is not necessary and not a requirement when publishing your app to the stores.

Resources

Questions? Let's chat