File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,12 @@ function exec(command) {
34
34
35
35
// Clean.
36
36
for ( const filename of await fs . readdir ( DEPLOY_ROOT ) ) {
37
- const stat = await fs . stat ( filename )
38
- if ( ! stat . isFile ( ) || filename . startsWith ( "." ) ) {
37
+ if ( filename === "docs" || filename . startsWith ( "." ) ) {
39
38
continue
40
39
}
41
40
42
- console . log ( `> rm ${ filename } ` )
43
- await fs . unlink ( filename )
41
+ console . log ( `> rm -rf ${ filename } ` )
42
+ await fs . remove ( filename )
44
43
}
45
44
46
45
// Move.
@@ -53,6 +52,8 @@ function exec(command) {
53
52
}
54
53
55
54
// Commit.
55
+ await exec ( 'git config --global user.email "[email protected] "' )
56
+ await exec ( 'git config --global user.name "Toru Nagashima"' )
56
57
await exec ( "git add -A" )
57
58
let updated = false
58
59
try {
You can’t perform that action at this time.
0 commit comments