File tree 1 file changed +9
-15
lines changed
1 file changed +9
-15
lines changed Original file line number Diff line number Diff line change @@ -45,28 +45,22 @@ console.log(`Starting script "${config.script}"...`);
45
45
console . log ( execSync ( `${ config . script } ` , { cwd } ) . toString ( 'utf-8' ) ) ;
46
46
47
47
console . log ( 'Configuring and committing...' ) ;
48
- execSync ( `
49
- cd ${ config . folder } &&
50
- git config user.email "${ config . user_email } " &&
51
- git config user.name "${ config . user_name } " &&
52
- git add . &&
53
- git commit --allow-empty -m "${ config . commit } "
54
- ` , { cwd } ) ;
48
+ execSync ( [
49
+ ` cd ${ config . folder } ` ,
50
+ ` git config user.email "${ config . user_email } "` ,
51
+ ` git config user.name "${ config . user_name } "` ,
52
+ ' git add .' ,
53
+ ` git commit --allow-empty -m "${ config . commit } "`
54
+ ] . join ( '&&' ) , { cwd } ) ;
55
55
56
56
if ( config . beforePushScript ) {
57
57
console . log ( 'Running beforePushScript...' ) ;
58
58
59
- execSync ( `
60
- cd ${ config . folder } &&
61
- ${ config . beforePushScript }
62
- ` , { cwd } ) ;
59
+ execSync ( `cd ${ config . folder } && ${ config . beforePushScript } ` , { cwd } ) ;
63
60
}
64
61
65
62
console . log ( 'Pushing...' ) ;
66
63
67
- execSync ( `
68
- cd ${ config . folder } &&
69
- git push --tags ${ config . repository } ${ config . branch }
70
- ` , { cwd } ) ;
64
+ execSync ( `cd ${ config . folder } && git push --tags ${ config . repository } ${ config . branch } ` , { cwd } ) ;
71
65
72
66
console . log ( 'Deploying to git is finished.' ) ;
You can’t perform that action at this time.
0 commit comments