GitHub Pages

GitHub Pages serves a site from a public repository on GitHub, for free. SeedPage makes the repository, sends the pages to it and turns Pages on. All it needs is a GitHub account: make one at github.com if you have none.

The site must be kept on Google Drive or on GitHub. A site kept only on this computer is moved first, from the list of sites: its pages would be public while its sources stayed on one computer.

The first time: a code

Choose GitHub Pages in the Publish panel and Publish now. GitHub's sign-in page opens in the browser, and the panel shows a code:

The Publish panel, publishing, with a code to type on GitHub and the link to GitHub's page for it

Number

Part

What it does

1

Publishing

The steps follow as they happen.

2

The code

Type it on GitHub's page, then choose Authorize. GitHub then lets SeedPage make and write public repositories in your account.

3

GitHub's page

The same page that opened, in case it did not.

SeedPage keeps that permission on this computer, so the next publish asks for no code. If GitHub no longer accepts it, because it was revoked or expired, the next publish shows a new code.

What it makes

The steps of a first publish: the code, creating the repository, writing the address, building, sending 214 files, turning on GitHub Pages and GitHub publishing the site

Number

Part

What it does

1

The repository

A public repository named after the site, in your account: clear-accounts, or clear-accounts-2 when that name is taken. Made once; later publishes use it again.

2

The address

Written in the site's settings: your-name.github.io/clear-accounts/. A domain of your own in the settings is kept instead.

3

The files

The built site, sent as one change of the repository.

4

GitHub publishing

GitHub builds its copy, which takes a minute or two the first time. The panel waits for it.

The end of a publish: Published, Open the site, Change where it is published and Close

Number

Part

What it does

1

Published

The site is online. A change can take a few minutes to show, as browsers and GitHub keep copies for a while.

2

Open the site

The live site, in a new tab.

3

Change where it is published

Back to the choice of host.

Publishing again

Publish sends the site again to the same repository, as a new change, and GitHub publishes it. The repository's history keeps every publish.

Sites kept on GitHub

A site whose sources are on GitHub publishes from its own repositories, made when it was created or moved there:

  • Everything public: the pages are published from the same repository as the sources.
  • Private sources: the pages go to their own public repository, as GitHub Pages on a free plan publishes only public repositories. GitHub asks a second time the first time, for permission to write private repositories.
  • In an organization: the repositories are made there when the site is created or moved, if your account may create repositories in it.

What GitHub Pages does not do

GitHub Pages sends every file with its own rules: it ignores the security headers and the cache rules SeedPage writes for the site. The pages still carry their content security policy inside them, and Lighthouse scores do not change. A site that needs the headers can move to Cloudflare Pages, which applies them.

When something goes wrong

  • "GitHub was not authorized": Authorize was not chosen on GitHub's page. Publish again.
  • "GitHub's code expired": the code lasts about fifteen minutes. Publish again and type the new one.
  • "GitHub Pages could not publish the site": GitHub failed to build its copy after several tries. Wait a few minutes and publish again.
  • "GitHub refused the publish": GitHub turned the request down, often for a moment. Try again later.
  • "This site is only on this computer": move it to GitHub or Google Drive first, from the list of sites.

Every message is listed in Errors.