Fix update gh pages (#4488)

This commit is contained in:
alschmiedt
2020-12-02 16:07:20 -08:00
committed by GitHub
parent bbca82cffb
commit 5dafd4fba7

View File

@@ -104,16 +104,17 @@ const createRC = gulp.series(
// Update github pages with what is currently in develop.
const updateGithubPages = gulp.series(
syncBranch('gh-pages'),
function(done) {
execSync('git pull ' + upstream_url + ' develop', { stdio: 'inherit' });
execSync('git stash save -m "Stash for sync"', { stdio: 'inherit' });
execSync('git checkout gh-pages || git checkout -b gh-pages', { stdio: 'inherit' });
execSync('git fetch upstream', { stdio: 'inherit' });
execSync('git reset --hard upstream/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' });
execSync('git push ' + upstream_url + ' gh-pages --force', { stdio: 'inherit' });
done();
}
);