File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 1
1
var gulp = require ( 'gulp' ) ;
2
2
var shell = require ( "gulp-shell" ) ;
3
- var ghPages = require ( 'gulp-gh-pages' ) ;
4
3
var runSequence = require ( 'run-sequence' ) ;
5
4
5
+ var GH_TOKEN = process . env . GH_TOKEN || '' ;
6
+
6
7
gulp . task ( 'jsdoc' , shell . task ( [
7
8
'rm -rf ./docs' ,
8
9
'jsdoc -c ./scripts/jsdoc-conf.json'
9
10
] ) ) ;
10
11
11
- gulp . task ( 'gh-pages' , [ 'jsdoc' ] , function ( ) {
12
- var GH_TOKEN = process . env . GH_TOKEN || '' ;
13
- return gulp . src ( './docs/**/*' ) .
14
- pipe ( ghPages ( { remoteUrl : 'https://' + GH_TOKEN + '@github.com/tart/tartJS.git' } ) ) ;
15
- } ) ;
12
+ gulp . task ( 'gh-pages' , [ 'jsdoc' ] , shell . task ( [
13
+ 'mv docs docs_new' ,
14
+ 'git remote add upstream https://' + GH_TOKEN + '@github.com/tart/tartJS.git/' ,
15
+ 'git fetch upstream' ,
16
+ 'git checkout -b gh-pages upstream/gh-pages' ,
17
+ 'rm -rf docs' ,
18
+ 'mv docs_new docs' ,
19
+ 'git add docs' ,
20
+ 'git commit -m "Update documentation"' ,
21
+ 'git push upstream gh-pages' ,
22
+ 'git checkout master'
23
+ ] ) ) ;
16
24
17
25
gulp . task ( 'travis-master' , [ 'gh-pages' ] ) ;
18
26
Original file line number Diff line number Diff line change 8
8
"dependencies" : {},
9
9
"devDependencies" : {
10
10
"gulp" : " ^3.9.0" ,
11
- "gulp-gh-pages" : " ^0.5.2" ,
12
11
"gulp-shell" : " ^0.4.2" ,
13
12
"jaguarjs-jsdoc" : " git://github.com/davidshimjs/jaguarjs-jsdoc" ,
14
13
"jsdoc" : " ^3.3.2" ,
You can’t perform that action at this time.
0 commit comments