A step-by-step guide to hosting your static website for free using GitHub Pages.
Ensure your project is initialized as a Git repository and pushed to GitHub.
Go to your repository on GitHub, navigate to Settings > Pages.
Under "Build and deployment", select Deploy from a branch.
Choose the main branch and ensure the folder is set to / (root). Click Save.
Wait a few minutes. Your site will be published at: