GitHub Pages

Deployment guideBeginner

Free hosting for static sites from a GitHub repository.

Suits

  • Static Site
  • Personal page
  • Documentation

Steps

  1. Upload the files to a repository.

  2. In Settings, then Pages, choose the branch and folder, or deploy with an Actions workflow.

  3. Wait for the build and open the link.

Example · bash
git push origin main

Notes

  • It does not support server-side code.
  • Single-page apps need a workaround for the 404 problem.

Sources

  1. GitHub Pages documentation