Skip to content

Commit

Permalink
fix: logic error while deciding deploymentBranch
Browse files Browse the repository at this point in the history
  • Loading branch information
thehanimo committed Aug 12, 2020
1 parent e919657 commit 550b0d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/docusaurus/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ export default async function deploy(

// github.io indicates organization repos that deploy via master. All others use gh-pages.
const deploymentBranch =
process.env.DEPLOYMENT_BRANCH || projectName.indexOf('.github.io') !== -1
? 'master'
: 'gh-pages';
process.env.DEPLOYMENT_BRANCH ||
(projectName.indexOf('.github.io') !== -1 ? 'master' : 'gh-pages');
const githubHost =
process.env.GITHUB_HOST || siteConfig.githubHost || 'github.com';

Expand Down

0 comments on commit 550b0d5

Please sign in to comment.