u
This commit is contained in:
parent
511136ec21
commit
c2c8ad6c93
@ -3,7 +3,7 @@
|
|||||||
* -t, --type: web(默认) 或 git
|
* -t, --type: web(默认) 或 git
|
||||||
* 如果是 git
|
* 如果是 git
|
||||||
* -r, --repo: 远程仓库,例如 'https://github.com/ORG/ORG.github.io'
|
* -r, --repo: 远程仓库,例如 'https://github.com/ORG/ORG.github.io'
|
||||||
* -b, --branch: 分支,默认为 master
|
* -b, --branch: 分支,默认为 main
|
||||||
* -n, --gitname
|
* -n, --gitname
|
||||||
* -e, --gitemail
|
* -e, --gitemail
|
||||||
* 如果是 web
|
* 如果是 web
|
||||||
|
@ -220,7 +220,7 @@ function deployToGit(connection){
|
|||||||
|
|
||||||
return {
|
return {
|
||||||
url: url,
|
url: url,
|
||||||
branch: branch || 'master'
|
branch: branch || 'main'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,7 +261,7 @@ function deployToGit(connection){
|
|||||||
|
|
||||||
help += 'You have to configure the deployment settings in config files or command line first!\n\n'
|
help += 'You have to configure the deployment settings in config files or command line first!\n\n'
|
||||||
help += 'Example:\n'
|
help += 'Example:\n'
|
||||||
help += ' node deploy.js -t git -r https://github.com/OWNER/OWNER.github.io -b master -f ./dist'
|
help += ' node deploy.js -t git -r https://github.com/OWNER/OWNER.github.io -b main -f ./dist'
|
||||||
|
|
||||||
console.log(help)
|
console.log(help)
|
||||||
return
|
return
|
||||||
|
@ -17,8 +17,8 @@
|
|||||||
"chalk": "^2.4.2",
|
"chalk": "^2.4.2",
|
||||||
"commander": "^3.0.1",
|
"commander": "^3.0.1",
|
||||||
"deepmerge": "^4.0.0",
|
"deepmerge": "^4.0.0",
|
||||||
"hexo-fs": "^2.0.0",
|
"hexo-fs": "^3.1.0",
|
||||||
"hexo-util": "^1.1.0",
|
"hexo-util": "^2.5.0",
|
||||||
"moment": "^2.24.0",
|
"moment": "^2.24.0",
|
||||||
"node-ssh": "^8.0.0",
|
"node-ssh": "^8.0.0",
|
||||||
"swig-templates": "^2.0.3"
|
"swig-templates": "^2.0.3"
|
||||||
|
Loading…
Reference in New Issue
Block a user