mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
Update gh pages script (#3925)
* Update script for pushing to github pages * Remove build github pages
This commit is contained in:
@@ -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();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user