Skip to content

Publishing SharpJS Applications

0xFireball edited this page Apr 26, 2016 · 1 revision

So you built your SharpJS application...great! But how do you publish it?

For this tutorial, I will assume that you are working on a GitHub repository.

  1. Copy all the files from the bin/Debug/html folder and the Libraries folder somewehere else, to a temporary folder outside the repository.
  2. Switch your repository to the gh-pages branch. This is best done from the GitHub online page generator, as it will automatically orphan the gh-pages branch.
  3. Once you create your site online, clone it, switch to the gh-pages branch, and delete its contents.
  4. Copy everything you set aside in a temporary folder earlier into the gh-pages branch of your repository.
  5. Commit, sync, and optionally switch back to the master branch.
  6. Congratulations! Your website is at <your-github-username>.github.io/<your-repository-name>.