A simple template for deploying an HTML website to GitHub Pages
- Fork this repository
- Clone the forked repository
- Copy HTML files to the root of the cloned repository and overwrite the index.html file
- Change the URL in
CNAME
to your own domain. If you don't have a domain, delete theCNAME
file. - Commit the changes and push them to GitHub
- Go to repo Settings -> Code and automation -> Actions -> General -> Workflow permissions -> Read and write permissions.
- Go to repo Settings -> Code and automation -> Pages -> Build and deployment -> Branch -> gh-pages -> Save.
- The website will be deployed to your GitHub Pages repository. The URL should look like
https://username.github.io/gh-pages-html-template
.