How to publish my portfolio consisting of multiple html files in github?

Viewed 2733

I am trying to publish my portfolio site in github. My folder consists of multiple html files (including homepage.html, projectpage.html, images folder etc.) and css file. However when I publish my site it shows only readme file and not my html web pages. How do I host my portfolio site in github? Please let me know.

Thank you

1 Answers

Using GitHub Pages:

  1. Upload all files to GitHub repository. Name the homepage index.html
  2. In the top horizontal bar, click Settings
  3. Scroll down to GitHub Pages
  4. Under Source, click the dropdown which currently says None ↓ and click Master Branch

Your site is now published at username.github.io/repo


Using Vercel's free plan which gives you a customisable domain:

  1. Upload all files to GitHub repository. Name the homepage index.html
  2. Sign up to Vercel for free using your GitHub account
  3. Go to deploy.new
  4. Under Import Git Repository, click Import on the right of the repository with your website code
  5. Click Select on your personal GitHub account
  6. Click Continue with the root directory selected
  7. Edit your project name if you like. Vercel will automatically detect your project's framework, but you can override the default options if you wish.
  8. Click Deploy

Vercel will start building your site. It will be hosted at projectname.vercel.app

Related