If you do a lot on GitHub, you probably know what GitHub Pages are. In case you don’t:
Only deploy your dist folder to Github Pages
When you’re working with a handy taskrunner like GruntJS or GulpJS, then you may have a dist folder containing your optimised files. Grunt & Gulp have their own plugins to deploy to Github Pages:
But you can also create a simple batch script (if you’re a Windows user) or shell script (if you’re a Mac or Linux user). The only code you have to add is:
git subtree push --prefix dist origin gh-pages
If you think there is an faster way to deploy a dist folder to Github Pages, let me know in the comments!