GitHub Pages can substitute for Cloudflare Pages for a qualifying static documentation or project site. It does not replace Pages Functions, and its business-use and access-control rules can rule it out for otherwise technically similar sites. A static build's portability does not imply identical backend or permission features.[1][3][5][6]
Overview
GitHub Pages is a static website-hosting service that publishes repository content, optionally through a build process. It supports project and account sites with HTTPS and custom-domain options. Repository-plan eligibility, website visibility, capacity and restrictions on business-oriented use affect which hosting needs it can replace.[1][2][3]
Repository-based static publishing
GitHub Pages publishes HTML, CSS, JavaScript and other static site files from a GitHub repository, optionally after a build step. It is suited to documentation, project information and personal sites. Client-side code can make a static site interactive, but Pages itself is not an application-server runtime for an arbitrary backend.[1]
A site can publish from a selected repository branch and folder or use a custom GitHub Actions workflow. This connects content changes to version control and automated builds. It also means that the build environment and final hosted output are separate: a program executed during a build is not thereby available as a continuously running server.[1][4]
User or organization sites and project sites have different default addresses. An account site uses the account's github.io address, while a project site normally adds its repository name to the path. Assets and internal links must suit the deployment path rather than assuming every project is hosted at a domain root.[1]
Repository access and site visibility
Public-repository Pages hosting is available on GitHub Free. Publishing from private repositories requires an eligible paid plan. These repository rules concern the source files; they do not automatically make the resulting website private.[1][2]
Private website publishing is a separate Enterprise Cloud capability for eligible organization project sites. Access is tied to the source repository's read permissions, with additional rules for Enterprise Managed Users. An ordinary private repository should not be used as evidence that a Pages site is safe for confidential content.[2][5]
Pages supports HTTPS, including correctly configured custom domains, and can redirect HTTP traffic to HTTPS. This protects transport but does not change who may view the content. Mixed-content links and domain configuration are separate concerns from the repository's visibility.[2]
Capacity and permitted use
Published sites have a 1 GB size limit. GitHub documents a soft bandwidth limit of 100 GB per month and a soft limit of ten builds per hour, with the build-rate exception for custom Actions workflows. These are distinct from a promise of unlimited hosting or unlimited build compute.[3]
The service is not permitted as free hosting for an online business, e-commerce site or site primarily facilitating commercial transactions or commercial SaaS. GitHub also cautions against sensitive transactions such as sending passwords or payment-card information. The existence of HTTPS does not override these service-use boundaries.[3]
Capabilities & limitations
Static site delivery
supported
Repository files or generated output become a hosted website.[1]
Publish documentation · Web · Provider network, account plan and regional availability apply