Merge branch 'master' of ssh://pwan.org/var/www/git/projects/tech-radar
[tech-radar.git] / scripts / publish-examples.js
1 var ghpages = require('gh-pages')
2 , path = require('path')
3 , options = {};
4
5 options.logger = console.log.bind(this);
6
7 function callback(err) {
8 if (err) {
9 console.error('Error publishing to gh-pages', err);
10 } else {
11 console.log('Successfully published to gh-pages');
12 }
13 }
14
15 ghpages.publish(path.join(__dirname, '../examples'), options, callback);