Browse Source

Tweak script order

Alex Dima 7 năm trước cách đây
mục cha
commit
5011586b50
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      gulpfile.js

+ 3 - 3
gulpfile.js

@@ -634,6 +634,9 @@ gulp.task('website', ['clean-website'], function() {
 			cp.execSync('git init', {
 				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')
+			});
 			cp.execSync('git checkout -b gh-pages', {
 				cwd: path.join(__dirname, '../monaco-editor-website')
 			});
@@ -643,9 +646,6 @@ gulp.task('website', ['clean-website'], function() {
 			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');
 		}))