From 32de43098c1ccb00d1ba8cf7174c09364cb6f0e6 Mon Sep 17 00:00:00 2001 From: alschmiedt Date: Fri, 29 May 2020 14:36:04 -0700 Subject: [PATCH] Update gh pages script (#3925) * Update script for pushing to github pages * Remove build github pages --- scripts/gulpfiles/git_tasks.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/scripts/gulpfiles/git_tasks.js b/scripts/gulpfiles/git_tasks.js index ba9c50519..35b737be7 100644 --- a/scripts/gulpfiles/git_tasks.js +++ b/scripts/gulpfiles/git_tasks.js @@ -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(); } );