GitHub Pages
GitHub Pages is a free static site hosting service built directly into GitHub. Deploy any HTML, CSS, and JavaScript project straight from your repository — perfect for portfolios, documentation, project landing pages, and demos.
01.How GitHub Pages Works
GitHub Pages serves your static files directly from a repository. Configure it to deploy from: the root of your main branch, a /docs folder on main, or a dedicated gh-pages branch. Every public repository gets a free URL at username.github.io/repo-name. Connect a custom domain for a professional touch.
02.Deploying React/Vue/Next.js Apps
Frameworks that need a build step use GitHub Actions to automate deployment. On every push to main: install dependencies → run build → deploy the dist/ or out/ folder to GitHub Pages. This is fully automated — commit your source code, GitHub builds it and deploys it live within minutes.
Commands
What type of sites can GitHub Pages host?