title: How do you publish a typescript website to GitHub Pages using Visual Studio?
body: <p>So I made a Typescript project with Visual Studio.  It works fine when I launch it with Visual Studio, but if I try to push it to my GitHub Pages site, it will put the <code>index.html</code> in a subfolder and I get a 404 error when I try to load my website. Even if I try to reference the index.html in the website url it doesn't really work. </p>
  
  <p>I was wondering if it's possible to only publish the needed items.  I think I would only need the subfolder.  Correct me if I am wrong though.</p>
  
  <p>Note: I have the GitHub extension for Visual Studio installed.</p>
  
  <p><img src="https://i.imgur.com/Lk1s7r4.png" alt="Project in VS"></p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Since some of the links don't seem to work anymore I think I should give some extra information. So basically you need to have a branch named <code>gh-pages</code>. On that branch you need to have an <code>index.html</code> file in your <strong>root</strong> folder. Then the <code>index.html</code> file should be visible on the github page URL.</p>