diff --git a/deploy.js b/deploy.js index c9048bb..1358685 100644 --- a/deploy.js +++ b/deploy.js @@ -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' }