From 66cbc99a1ecf864d67a415501ca279e8a2dbcdf0 Mon Sep 17 00:00:00 2001 From: Alex Dima Date: Fri, 17 Jun 2016 08:58:34 +0200 Subject: [PATCH] More website scripts --- gulpfile.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index e16a3c79..e7b017d9 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -319,6 +319,22 @@ gulp.task('website', ['clean-website', 'playground-samples'], function() { cp.execSync('npm install monaco-editor', { cwd: path.join(__dirname, '../monaco-editor-website') }); + cp.execSync('git init', { + cwd: path.join(__dirname, '../monaco-editor-website') + }); + cp.execSync('git checkout -b gh-pages', { + cwd: path.join(__dirname, '../monaco-editor-website') + }); + cp.execSync('git add .', { + cwd: path.join(__dirname, '../monaco-editor-website') + }); + cp.execSync('git commit -m "Publish website"', { + cwd: path.join(__dirname, '../monaco-editor-website') + }); + cp.execSync('git remote add origin https://github.com/Microsoft/monaco-editor.git', { + cwd: path.join(__dirname, '../monaco-editor-website') + }); + console.log('RUN monaco-editor-website>git push origin gh-pages --force') this.emit('end'); })) );