base > docs > publishing > GitHub Pages
This repository is configured to use GitHub Pages to host a simple, clean website for the project.
Before the workflow can deploy your site, you must configure your repository
to use GitHub Actions for GitHub Pages.
This is a one-time setup step that connects your repository’s Pages settings
to the pages.yml workflow included in this template.
After you select “GitHub Actions”, the UI may present you with suggestions
for common workflows (e.g., “GitHub Pages Jekyll”, “Static HTML”).
You can ignore these suggestions.
This repository already contains a custom, pre-configured workflow
(.github/workflows/pages.yml) that will
be used automatically.
Note: If you do not perform this setup step, the
pages.ymlworkflow will fail with a “Get Pages site failed” or “HttpError: Not Found” error.
The site is built and deployed by the
.github/workflows/pages.yml workflow.
Here’s a summary of the process:
main
branch.jekyll-build-pages GitHub Action
to build a static website.README.md
file as the content for the homepage (index.html) of the site._config.yml file in the root of the
repository specifies the jekyll-theme-primer theme, which gives the
site the standard GitHub look and feel.After the first push to main, the site will be available at a URL like:
https://<your-username>.github.io/<your-repository-name>/
You can also find the URL in the “Pages” section of your repository’s settings.