Skip to content

How to publish saved pages with SingleFile on GitHub

Gildas edited this page Sep 5, 2021 · 8 revisions
  1. Create the repository used to store saved pages, see https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/creating-a-new-repository. You can also fork https://github.com/gildas-lormeau/SingleFile-Archives which contains an index.html file displaying the listing of saved pages.
  2. Set the main branch as the source of GitHub pages, see https://docs.github.com/en/pages/getting-started-with-github-pages/configuring-a-publishing-source-for-your-github-pages-site.
  3. Create a personal access token associated to your account on GitHub, see https://docs.github.com/github/authenticating-to-github/keeping-your-account-and-data-secure/creating-a-personal-access-token.
  4. Select Destination > upload to GitHub in the options page of SingleFile and enter your access token, user name. You can also set the repository name and the branch name if your repository is not named SingleFile-Archives or if the branch is not named main respectively.

Warning: Once a page saved on GitHub, it is very complicated to delete it, see https://docs.github.com/github/authenticating-to-github/keeping-your-account-and-data-secure/removing-sensitive-data-from-a-repository.