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