mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 20:49:53 +08:00
14 lines
308 B
JavaScript
14 lines
308 B
JavaScript
var ghPages = require('gh-pages');
|
|
var path = require('path');
|
|
ghPages.publish(path.join(process.cwd(), '_site'), {
|
|
depth: 1,
|
|
logger: function (message) {
|
|
console.log(message);
|
|
}
|
|
}, function (err) {
|
|
if (err) {
|
|
throw err;
|
|
}
|
|
console.log('Site has been published to http://ant.design');
|
|
});
|