File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -83,17 +83,19 @@ const getDocumentationFolder = () => {
83
83
const generateAndDeploy = ( ) => {
84
84
shell . exec ( generateJazzyInstallCommand ( ) )
85
85
shell . exec ( generateJazzyArguments ( ) )
86
- shell . cp ( "-r" , `${ getDocumentationFolder ( ) } /*` , "../" )
86
+ shell . exec ( "mkdir ../.docs" )
87
+ shell . cp ( "-r" , `${ getDocumentationFolder ( ) } /*` , "../.docs/" )
87
88
88
- shell . cd ( "../" )
89
- shell . rm ( "-rf" , `${ process . env . GITHUB_WORKSPACE } ` )
89
+ shell . cd ( "../.docs" )
90
90
91
91
shell . exec ( "git init" )
92
92
shell . exec ( `git config user.name ${ context . actor } ` )
93
93
shell . exec ( `git config user.email ${ context . actor } @users.noreply.github.com` )
94
94
shell . exec ( "git add ." )
95
95
shell . exec ( "git commit -m 'Deploying Updated Jazzy Docs'" )
96
96
shell . exec ( `git push --force ${ remote } master:${ branch } ` )
97
+
98
+ shell . cd ( process . env . GITHUB_WORKSPACE )
97
99
}
98
100
99
101
try {
You can’t perform that action at this time.
0 commit comments