mirror of https://github.com/alibaba/ice.git
chore: branch name
This commit is contained in:
parent
d90e5392b2
commit
8cbfa0d4de
|
|
@ -14,6 +14,13 @@ const projectDir = path.resolve(__dirname, '..');
|
|||
const docsDir = path.resolve(__dirname, '../docs');
|
||||
const destDir = path.join(__dirname, '../build');
|
||||
|
||||
const branch = process.env.BRANCH_NAME;
|
||||
if (branch !== 'master' && !/docs/.test(branch)) {
|
||||
console.log('当前分支非 master/docs*, 不执行文档同步脚本');
|
||||
console.log(`BRANCH_NAME=${branch}`);
|
||||
process.exit(0);
|
||||
}
|
||||
|
||||
rimraf.sync(destDir);
|
||||
fse.ensureDirSync(destDir);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue