Skip to content

How to deploy your website for free on GitHub pages?

You can easily deploy your static website for free on GitHub. Create a new repository on GitHub or go to the existing one. Make sure that the repository in its root has either index.md file or index.html file. Most of the time you would use index.html.

After you are sure that there is an index.html file you need to do the following steps:

  1. Go to your repository settings which are under the repository name.
Step 1 – click repository Settings

2. On the sidebar click on Pages.

Step 2 – On the left sidebar click on Pages

3. Under Source select a branch you wish to use for deployment. Usually, it is the main branch. After you selected a branch, click Save.

Step 3 – Select branch and click Save.

4. Wait for a couple of minutes and your page will be deployed. You will see a link on which your page will be deployed. That is all you need to do to deploy your page for free.

Step 4 – the site will be published on the link above.