Publishing to GitHub Pages
The repository you created on the previous page is where the files for your comic are kept. In order to actually display those files as a proper website, you'll need to publish to GitHub Pages. This page walks you through those steps.
In your repository, go to the Settings tab.
The Settings option. In the sidebar on the left, click Actions > General.
Go to Actions > General. In Workflow Permissions at the bottom of the page, select Read and write permissions, then click Save below it.
Set read and write permissions. In the sidebar, click Pages.
Go to Pages. Under Branch, select
master
from the dropdown.Select the working branch.
Click Save. Once you do, GitHub will automatically publish your repository to GitHub Pages!
Click Save. Success! Publishing isn't immediate; GitHub needs to do some work in the background to do so. 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 new text box appear telling you that your site is now live!
It's ready!
Click Visit site to go to your website, hosted from your very own GitHub account! WOO HOO!
It lives!
Next, we need to set up the app that will let you move your own files into the repository.
A Tale of 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: comicgitdemo
Repository name: bestcomic
GitHub repository URL: https://github.com/comicgitdemo/bestcomic
GitHub Pages URL: https://comicgitdemo.github.io/bestcomic
Your GitHub Pages URL is what you 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.
Last updated