Publishing to GitHub Pages - ryanvilbrandt/comic_git GitHub Wiki

← Creating your own Repository | Installing GitHub Desktop →

Now that your repository is created, you can publish your repository to GitHub Pages.

First, go to the Settings tab on the GitHub page for your newly created repository.

Scroll down to the Actions section, click it and then click the General subsection.


At the top of this page, in the Actions permissions section, make sure the Allow all actions and reusable workflows option is selected.


Scroll down to the Workflow permissions section, and select the Read and write permissions option, then click the Save button.


In the Settings sidebar again, select the Pages section. On that page, click on the dropdown under Branch and select master. Then click the Save button.


Once you have that setting enabled, your repository will be automatically published to GitHub Pages! The publishing doesn't happen immediately, as GitHub needs to do some work in the background to make it happen. For this first time, the publishing process could take a few minutes. Go get a coffee, hit the can, call your mother... and when you come back, refresh your Settings page, and you should see a box at the top of the page that says "Your site is live at..." with a URL pointing to your new site!


(You can also view the progress of your GitHub Pages deployments in the Deployments tab of your repo.)

Clicking on that URL will take you to your website, hosted from your very own GitHub account! WOO HOO! It looks exactly like the sample webcomic for now. You will learn how to update your website in a later section.


ℹī¸ Your Two GitHub URLs

You now have two different URLs to keep track of: Your GitHub repository URL, and your GitHub Pages URL. Both of these URLs are automatically generated based on your GitHub account name and your webcomic repository name.

Example:

GitHub account name: ryanvilbrandt
Repository name: sample-comic
GitHub repository URL: https://github.com/ryanvilbrandt/sample-comic
GitHub Pages URL: https://ryanvilbrandt.github.io/sample-comic

Your GitHub Pages URL is what you will need to give to anyone who wants to read your comic.

If you like, you can even set a custom domain rather than using the default one.

← Creating your own Repository | Installing GitHub Desktop →

⚠ī¸ **GitHub.com Fallback** ⚠ī¸