Skip to content

Commit

Permalink
Fix gulp
Browse files Browse the repository at this point in the history
  • Loading branch information
sampotts committed Jan 29, 2019
1 parent b798368 commit d9daf2c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ if (Object.keys(credentials).includes('aws') && Object.keys(credentials).include
const branch = {
current: gitbranch.sync(),
master: 'master',
develop: 'develop',
beta: 'beta',
};

const maxAge = 31536000; // 1 year
Expand All @@ -258,7 +258,7 @@ if (Object.keys(credentials).includes('aws') && Object.keys(credentials).include
},
},
demo: {
uploadPath: branch.current === branch.develop ? 'beta/' : null,
uploadPath: branch.current === branch.beta ? 'beta/' : null,
headers: {
'Cache-Control': 'no-cache, no-store, must-revalidate, max-age=0',
Vary: 'Accept-Encoding',
Expand Down Expand Up @@ -289,7 +289,7 @@ if (Object.keys(credentials).includes('aws') && Object.keys(credentials).include

// Check we're on the correct branch to deploy
const canDeploy = () => {
const allowed = [branch.master, branch.develop];
const allowed = [branch.master, branch.beta];

if (!allowed.includes(branch.current)) {
console.error(`Must be on ${allowed.join(', ')} to publish! (current: ${branch.current})`);
Expand Down

0 comments on commit d9daf2c

Please sign in to comment.