title: Angular deploy on GitHub Pages
body: <p>I'm trying to deploy an Angular app to GitHub pages but setting the gh-pages branch as the source shows the content of the README file. </p>
  
  <p>I've tried the official way which is:</p>
  
  <pre><code>git checkout -b gh-pages
  git push origin gh-pages
  npm install -g angular-cli-ghpages
  ng build --prod --base-href https://[username].github.io/[repo]/
  </code></pre>
  
  <p>After I run ngh I get this message in terminal:</p>
  
  <pre><code>User@JoseTurron MINGW64 /i/projekt-zaliczeniowy-cdv (gh-pages)
  $ ngh
  index.html could not be copied to 404.html. This does not look like an angular-cli project?!
  (Hint: are you sure that you have setup the directory correctly?)
  Diagnostic info: ENOENT: no such file or directory, stat 'I:\projekt-zaliczeniowy-cdv\dist\index.html'
  �‍� Uploading via git, please wait...
  � Successfully published via angular-cli-ghpages! Have a nice day!
  </code></pre>
  
  <p>I'm out of ideas on how to solve this. Thanks for any suggestions! </p>
  
  <ul>
  <li>REPO: <a href="https://github.com/JoseTurron/flight-booking-cdv" rel="nofollow noreferrer">https://github.com/JoseTurron/flight-booking-cdv</a> </li>
  <li>GITHUB PAGES: <a href="https://joseturron.github.io/flight-booking-cdv/" rel="nofollow noreferrer">https://joseturron.github.io/flight-booking-cdv/</a></li>
  </ul>