Team FAQ: this question comes up often, so we've answered it below. Add your own experience, or a different view, in the comments.
You've built a portfolio site and want it online without paying for hosting. How does GitHub Pages work?
Team FAQ: this question comes up often, so we've answered it below. Add your own experience, or a different view, in the comments.
You've built a portfolio site and want it online without paying for hosting. How does GitHub Pages work?
GitHub Pages hosts static sites (HTML, CSS, JavaScript) for free from a repository. It's ideal for portfolios, documentation and project demos.
Quick setup for a personal site:
<username>.github.io(for exampleyour-username.github.io).index.htmlat the root.main, folder/ (root).https://<username>.github.io.For any other repo, the same settings publish it at
https://<username>.github.io/<repo-name>/.Using React, Vue, Astro or another build tool? Choose GitHub Actions as the source in Settings > Pages. GitHub suggests a workflow for common frameworks that builds and deploys on every push. For apps built with Vite or similar, set the
basepath to/<repo-name>/if it's not yourusername.github.iorepo, or assets will 404.Custom domain: add it under Settings > Pages, then create the DNS records GitHub shows (a
CNAMErecord forwww, orArecords for the root domain). Tick Enforce HTTPS once the certificate is issued.Limits to know:
A portfolio is only as good as what's in it: developer portfolio projects that impress hiring managers.
Hosted your portfolio somewhere else? Share what you used and why.