DEV Community

Cover image for Deploy/Host your website for free
Codeitdoc7
Codeitdoc7

Posted on • Updated on

Deploy/Host your website for free

Hey there, so you have a awesome website ready to be shared with the whole world or just looking to flex in front of friends/family🔥, but don't know how to do it. No worries I am here to help. Well there are many websites for it, but today we will be talking about Github Pages.

Why GitHub Pages?
TBH I have deployed my first website using GitHub pages, so I will able to explain it better, and it's very easy and fast too⚡.

Enough chitchat tell me how to deploy🙄
Fair enough, let's get the website up in no time-

  • Go to the repository (If you don't know how to create one this will help).

  • Click on settings

Repo Settings

  • Pages

Pages

  • Under Source select the branch which you want to deploy.

Branch

  • Select root folder if not preselected.

Root folder

  • Click on save.

  • Wait few seconds for it to complete the build process(You can check it in the action tab).

Action Tab

  • And Your awesome website is up on internet.

Deployed website

Deployed website is just showing readme page

  1. Just change the xyz.html file name to index.html.

  2. Problem not solved add index.md file and it will definitely fix the issue.

Note- Make sure to wait few more minutes for it to complete the build process then refresh the website.

I Got some suggestions✨
That's great I'm always looking to improve, please comment below your suggestion (s).

You are Awesome where can I Connect with you😎?
🚀Github

🌱Instagram

📨[Email] - loficode777@gmail.com

🐦[Twitter]- Soon

Buy Me A Coffee

Top comments (3)

Collapse
 
vulcanwm profile image
Medea

Hey does GitHub pages only work with static websites?

Collapse
 
coditdoc profile image
Codeitdoc7

Yes it only supports static websites.

Collapse
 
vulcanwm profile image
Medea

okay thanks