You can host your GitHub repositories using GitHub Pages. This tool only allows hsoting of clients side languages such as HTML, CSS, and JavaScript.
To deploy a GitHub repository follow these steps:
- Navigate to the GitHUb repository that you would like to deploy.
- Click
Settings
(top right). - Click
Pages
(left side). - Choose
Deploy from a branch
, then select the branch (probablymain
), and then the folder (probably/ (root)
).
Your HTML, CSS, and JavaScript webpage will now be available at:
https://<GITHUB_USERNAME>.github.io/<GITHUB_REPO_NAME>
For example my github-pages repository is avalable to view as a webpage at https://codeadamca.github.io/github-pages/.