Skip to content

Commit

Permalink
Pushing update reason for gh-pages and bower.
Browse files Browse the repository at this point in the history
e.g. eabbfd7
  • Loading branch information
yurydelendik committed Oct 23, 2015
1 parent eabbfd7 commit ea7428f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions make.js
Original file line number Diff line number Diff line change
Expand Up @@ -265,11 +265,14 @@ target.web = function() {
GH_PAGES_DIR + '/getting_started/index.html');
echo('Done building with wintersmith.');

var reason = process.env['PDFJS_UPDATE_REASON'];
var message = 'gh-pages site created via make.js script\n' +
'PDF.js version ' + VERSION + (reason ? ' - ' + reason : '');
cd(GH_PAGES_DIR);
exec('git init');
exec('git remote add origin ' + REPO);
exec('git add -A');
exec('git commit -am "gh-pages site created via make.js script"');
exec('git commit -am "' + message + '"');
exec('git branch -m gh-pages');

echo();
Expand Down Expand Up @@ -354,7 +357,8 @@ target.dist = function() {
echo('### Commiting changes');

cd(DIST_DIR);
var message = 'PDF.js version ' + VERSION;
var reason = process.env['PDFJS_UPDATE_REASON'];
var message = 'PDF.js version ' + VERSION + (reason ? ' - ' + reason : '');
exec('git add *');
exec('git commit -am \"' + message + '\"');
exec('git tag -a v' + VERSION + ' -m \"' + message + '\"');
Expand Down

0 comments on commit ea7428f

Please sign in to comment.