改成默认github用 main 分支
This commit is contained in:
parent
c50d29c072
commit
8991abbdd7
@ -25,7 +25,7 @@ const wo = (global.wo = {
|
||||
github: {
|
||||
targetType: 'git',
|
||||
repo: undefined,
|
||||
branch: 'master',
|
||||
branch: 'main',
|
||||
gitname: undefined,
|
||||
gitemail: undefined,
|
||||
user: undefined,
|
||||
@ -207,7 +207,7 @@ function deployToGit(connection){
|
||||
const path = match[2]
|
||||
|
||||
if (host === 'github.com') {
|
||||
branch = rGithubPage.test(path) ? 'master' : 'gh-pages'
|
||||
branch = rGithubPage.test(path) ? (connection.branch || 'main') : 'gh-pages'
|
||||
} else if (host === 'coding.net') {
|
||||
branch = 'coding-pages'
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user