Skip to content

Commit 4727553

Browse files
committed
Chore: update deploy scripts
1 parent 06050f8 commit 4727553

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/deploy.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,12 @@ exec("npm run build")
5454
// Load gh-pages.
5555
if (ATOKEN) {
5656
exec("git fetch --depth=1 https://github.com/mysticatea/vue-eslint-demo.git gh-pages:gh-pages")
57+
exec("git checkout gh-pages")
58+
}
59+
else {
60+
exec("git checkout gh-pages")
61+
exec("git pull")
5762
}
58-
exec("git checkout gh-pages")
5963

6064
// Check versions.
6165
const oldVersions = String(sh.cat("versions.json"))

0 commit comments

Comments
 (0)