Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
build/deploy.js
Browse files Browse the repository at this point in the history
  • Loading branch information
bbert committed Nov 9, 2017
1 parent fce2d56 commit ad99729
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ getBranchName().then(

// Copy and update index.html
console.info('Copy and update index.html');
var index = fs.readFileSync(path + 'index.html', 'utf-8');
var index = fs.readFileSync('index.html', 'utf-8');
index = index.replace(/@@VERSION/g, pkg.version);
index = index.replace(/@@DATE/, pkg.date);
fs.writeFileSync(path + 'index.html', index);
Expand Down Expand Up @@ -183,9 +183,10 @@ getBranchName().then(
fs.writeFileSync(path, index);

// Update 'latest' symbolic link
fs.ensureSymlinkSync(pkg.dir, 'latest');
fs.ensureSymlinkSync('gh-pages/' + pkg.dir, 'gh-pages/latest');
}
}

return Promise.resolve();
})

Expand Down

0 comments on commit ad99729

Please sign in to comment.