Deploying a GitHub Pages Site
Activate Pages
Now that you have a GitHub repository, it’s now time to share your work with the world. GitHub pages offers a no-cost coding-optional way to publish your work to the internet.
- In your repository, Navigate to the “Settings” tab.
- On the left menu, scroll down to “Pages”
- Under Source, select “Deploy from a branch”
- Change the
Source
box fromnone
tomain branch
. Click “Save”
- That’s it. Your site is ready to deploy! Be patient, because it may take a few minutes to build.
Your new site’s url
The URL to your GitHub Pages site will follow this formula: username.github.io/repo-name
– let’s make it easier to find.
- Navigate back to the “Code” tab, or main page to your repository. Edit your “About” details by clicking on the gear in the top right corner.
- Write a short description of your repository.
- Under “Website”, check the box to select “use GitHub Pages URL”
- Save your changes
Now you’ll notice that a url has appeared.
Waiting for GitHub Pages
From your main page, you should be able to tell whether GitHub Pages has finished deploying your site. After your latest ‘commit’, you’ll see a brownish-yellow dot or a green check mark.
The dot indicates that your site is in the process of deploying. Once the dot becomes a green check mark, navigate to your URL and marvel at your new website! Sometimes this process takes a few minutes.