mirror of
https://github.com/google/blockly.git
synced 2026-01-07 17:10:11 +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.
|
// Update github pages with what is currently in develop.
|
||||||
const updateGithubPages = gulp.series(
|
const updateGithubPages = gulp.series(
|
||||||
syncBranch('gh-pages'),
|
|
||||||
function(done) {
|
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();
|
done();
|
||||||
},
|
},
|
||||||
buildTasks.build,
|
buildTasks.build,
|
||||||
function(done) {
|
function(done) {
|
||||||
execSync('git commit -am "Rebuild"', { stdio: 'inherit' });
|
execSync('git commit -am "Rebuild"', { stdio: 'inherit' });
|
||||||
execSync('git push ' + upstream_url + ' gh-pages', { stdio: 'inherit' });
|
execSync('git push ' + upstream_url + ' gh-pages --force', { stdio: 'inherit' });
|
||||||
execSync('git push origin gh-pages', { stdio: 'inherit' });
|
|
||||||
done();
|
done();
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user