DEV Community

Crazy Guy
Crazy Guy

Posted on

How I Published a Website from a GitHub Repository for Free

I recently published a website using GitHub Pages, which allows you to host static websites directly from a GitHub repository for free.

It is one of the easiest ways to deploy a website without any server setup.

GitHub Pages

I used GitHub Pages to publish my website for free.

GitHub Pages is a free hosting service that lets you turn any GitHub repository into a live website.

How It Works

  1. Create a GitHub repository
  2. Add your website files (HTML, CSS, JS)
  3. Go to repository settings
  4. Enable Pages under the "Pages" section
  5. Select branch (main or master)
  6. Save and wait for deployment

Your site will be live at:

https://yourusername.github.io/repository-name/

What You Can Build

With GitHub Pages, you can create:

  • Portfolio websites
  • Project documentation
  • Landing pages
  • Resource websites
  • Blogs

Career Resources Example Website

A real-world example of a useful website could include job listings like:

Jobz.pk is one of Pakistan’s leading job portals:
Jobz.pk

It provides daily updates on government, private, and overseas job opportunities.

Final Thoughts

GitHub Pages is a powerful and simple solution for hosting static websites for free. It is perfect for beginners, developers, and anyone who wants to quickly publish a project online.

I highly recommend trying it if you want to deploy your first website.

Top comments (0)