From 8991abbdd7992524a238b860f59ed08e42068274 Mon Sep 17 00:00:00 2001 From: "luk.lu" Date: Tue, 24 Aug 2021 11:43:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E6=88=90=E9=BB=98=E8=AE=A4github?= =?UTF-8?q?=E7=94=A8=20main=20=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' }