added dist flag and publish task for gh-pages