mirror of
https://github.com/google/blockly.git
synced 2026-01-04 15:40:08 +01:00
Fix update gh pages (#4488)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user