|
|
|
@ -48,7 +48,7 @@ const deleteBuild = (task) => new Promise(async resolve => {
|
|
|
|
|
shell.rm('-rf', `${buildPath}/static`);
|
|
|
|
|
|
|
|
|
|
await execa('git', ['add', '.']);
|
|
|
|
|
await execa('git', ['commit', '-m', `'发布新版本'`]);
|
|
|
|
|
await execa('git', ['commit', '-m', `'自动发布'`]);
|
|
|
|
|
await execa('git', ['push', 'origin', mapping[env].buildBranch]);
|
|
|
|
|
resolve();
|
|
|
|
|
} catch (e) {
|
|
|
|
@ -64,7 +64,7 @@ const copyBuild = (task) => new Promise(async resolve => {
|
|
|
|
|
|
|
|
|
|
shell.cd(buildPath);
|
|
|
|
|
await execa('git', ['add', '.']);
|
|
|
|
|
await execa('git', ['commit', '-m', `'发布新版本'`]);
|
|
|
|
|
await execa('git', ['commit', '-m', `'自动发布'`]);
|
|
|
|
|
await execa('git', ['push', 'origin', mapping[env].buildBranch]);
|
|
|
|
|
resolve();
|
|
|
|
|
} catch (e) {
|
|
|
|
|