Skip to content

Commit bf5f427

Browse files
committed
⚒ fix website script
1 parent 8e67d81 commit bf5f427

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/deploy.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ function exec(command) {
3434

3535
// Clean.
3636
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(".")) {
3938
continue
4039
}
4140

42-
console.log(`> rm ${filename}`)
43-
await fs.unlink(filename)
41+
console.log(`> rm -rf ${filename}`)
42+
await fs.remove(filename)
4443
}
4544

4645
// Move.
@@ -53,6 +52,8 @@ function exec(command) {
5352
}
5453

5554
// Commit.
55+
await exec('git config --global user.email "[email protected]"')
56+
await exec('git config --global user.name "Toru Nagashima"')
5657
await exec("git add -A")
5758
let updated = false
5859
try {

0 commit comments

Comments
 (0)