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