Recently, I am learning AngularJS, and I “believe” I have some progress, so that I cannot wait to puslish my work to the public.
This is the repository for the AngularJS demo I write in GitHub. And I publish this work at this link: http://sbzhouhao.net/TodoApp-AngularJS-Firebase/#/todo, which is a static page hosted in GitHub Pages.
The easiest and most intuitive way is to copy all the files in
gh-pages branch of my new repository. But I just wonder is there any other solution for this? As I know hexo has a command:
hexo deploy -m "XXXXXX"
to deploy your website.
Then, I just try my luck. Awesome! There is something called grunt-gh-pages.
What I do is as following:
grunt-gh-pages configyration into
###2. Register a task as
deploy [This is optional, but I like the the way from
hexo, so I register it as
###Therefore, if you want to publish your website into GitHub Pages, you can:
# This will generate the dist folder, which contain everything about the website