Update gh pages script (#3925)

* Update script for pushing to github pages

* Remove build github pages
This commit is contained in:
alschmiedt
2020-05-29 14:36:04 -07:00
committed by GitHub
parent 00df97a59d
commit 32de43098c

View File

@@ -98,10 +98,8 @@ const createRC = gulp.series(
execSync('git checkout -b ' + branchName, { stdio: 'inherit' });
execSync('git push ' + upstream_url + ' ' + branchName,
{ stdio: 'inherit' });
execSync('git checkout -b gh-pages');
execSync('git push ' + upstream_url + ' gh-pages');
done();
},
}
);
// Update github pages with what is currently in develop.
@@ -109,7 +107,13 @@ const updateGithubPages = gulp.series(
syncBranch('gh-pages'),
function(done) {
execSync('git pull ' + upstream_url + ' develop', { stdio: 'inherit' });
done();
},
buildTasks.build,
function(done) {
execSync('git commit -am "Rebuild"', { stdio: 'inherit' });
execSync('git push ' + upstream_url + ' gh-pages', { stdio: 'inherit' });
execSync('git push origin gh-pages', { stdio: 'inherit' });
done();
}
);