🚀 How I Hosted My Personal Portfolio Using GitHub Pages

If you’re looking for a free and simple way to host your personal website or portfolio, GitHub Pages is one of the easiest options. It’s completely free, supports custom domains, and integrates seamlessly with your GitHub repositories.

Here’s how I did it for my own bio-data site.


Step 1: Create a GitHub Repository

  1. Go to GitHub and log in.

  2. Click New Repository.

  3. Name it anything you like (e.g., my-portfolio).

  4. Make it Public so GitHub Pages can access it.

  5. Click Create Repository.


Step 2: Add Your Website Files

I created a simple index.html file containing my bio-data, GitHub, and LinkedIn links.

Example:

htmlCopyEdit<!DOCTYPE html>
<html>
<head>
  <title>Harshal Vernekar - Portfolio</title>
</head>
<body>
  <h1>Harshal Vernekar</h1>
  <p>🚀 Aspiring DevOps & Cloud Engineer</p>
  <p>Location: Mumbai, India</p>

  <h2>Connect with me:</h2>
  <ul>
    <li><a href="https://github.com/Harshalv21" target="_blank">GitHub</a></li>
    <li><a href="https://www.linkedin.com/in/harshal-vernekar" target="_blank">LinkedIn</a></li>
  </ul>
</body>
</html>

Push this file to your GitHub repository using GitHub Desktop or command line:

git add .
git commit -m "Added portfolio files"
git push origin main

Step 3: Enable GitHub Pages

  1. Go to your repository Settings.

  2. Scroll down to Pages.

  3. Under Build and deployment, choose:

    • Source: Deploy from a branch

    • Branch: main

  4. Save the changes.

GitHub will give you a live link like:

https://yourusername.github.io/my-portfolio/

Step 4: Keep Your Site Updated

Whenever I make changes to my files and push them to the main branch, GitHub Pages automatically rebuilds my site within seconds.


Final Thoughts
GitHub Pages is a perfect choice for static websites like portfolios, resumes, and documentation. It’s fast, secure, and free — making it a great starting point for anyone who wants to showcase their work online.

0
Subscribe to my newsletter

Read articles from HARSHAL VERNEKAR directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

HARSHAL VERNEKAR
HARSHAL VERNEKAR

🚀 Aspiring DevOps & Cloud Engineer with a strong foundation in cloud platforms (AWS), infrastructure automation, and container orchestration tools like Docker and Kubernetes. I’m passionate about building reliable, scalable, and secure cloud-native applications. 🔧 Currently building real-world projects using Terraform, Ansible, Jenkins, GitHub Actions, and EKS to understand how modern infrastructure is deployed, managed, and monitored. I enjoy breaking things (safely), debugging, and learning from hands-on experience. 📦 Comfortable working with: AWS (EC2, S3, IAM, VPC, EKS) Docker, Kubernetes (Minikube & EKS) CI/CD tools like Jenkins & GitHub Actions IaC tools like Terraform & Ansible Monitoring with Prometheus & Grafana Linux, Bash, Git, and Networking fundamentals 💡 Always learning — currently exploring deeper concepts in Kubernetes workloads, Helm, and scaling best practices. 🔍 Open to DevOps, Cloud, or SRE roles where I can grow, contribute, and solve real-world problems.