Skip to content

Commit

Permalink
Fix #374 environment variables have precedent over conf (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpicado authored and JoelMarcey committed Feb 27, 2018
1 parent d025e04 commit d2bff69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/publish-gh-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ const GIT_USER = process.env.GIT_USER;
const CURRENT_BRANCH =
process.env.CIRCLE_BRANCH || shell.exec('git rev-parse --abbrev-ref HEAD');
const ORGANIZATION_NAME =
siteConfig.organizationName ||
process.env.ORGANIZATION_NAME ||
process.env.CIRCLE_PROJECT_USERNAME;
process.env.CIRCLE_PROJECT_USERNAME ||
siteConfig.organizationName;
const PROJECT_NAME =
siteConfig.projectName ||
process.env.PROJECT_NAME ||
process.env.CIRCLE_PROJECT_REPONAME;
process.env.CIRCLE_PROJECT_REPONAME ||
siteConfig.projectName;
const IS_PULL_REQUEST =
process.env.CI_PULL_REQUEST || process.env.CIRCLE_PULL_REQUEST;
const USE_SSH = process.env.USE_SSH;
Expand Down

0 comments on commit d2bff69

Please sign in to comment.