File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -12,5 +12,4 @@ node_js:
12
12
before_install :
13
13
- rvm install 2.2.2
14
14
script :
15
- - ' bundle install'
16
- - ' make nightly'
15
+ - ' make pages'
Original file line number Diff line number Diff line change @@ -87,18 +87,19 @@ docs-server:
87
87
@bundle exec jekyll serve
88
88
89
89
#
90
- # Nightly data build process
90
+ # Pages data build process
91
91
#
92
- ifeq ($(shell git --no-pager show -s --format=" % aN" HEAD ) , ChaiJs Bot )
93
- nightly :
94
- @echo " Cowardly refusing to build nightly "
92
+ ifneq ($(TRAVIS_BRANCH ) , master )
93
+ pages :
94
+ @echo " Cowardly refusing to build pages "
95
95
else
96
- nightly : clean plugins releases api-docs
96
+ pages : install clean plugins releases api-docs
97
+ @echo " Comitting to gh-pages"
97
98
@git config user.name " ChaiJs Bot"
98
99
@git config user.email
" [email protected] "
99
100
@git add -f _data
100
101
@git commit -m ' (data): Auto build _data'
101
- @git push " https://${GH_TOKEN} @github.com/chaijs/chai-docs" HEAD:refs/heads/gh-pages
102
+ @git push " https://${GH_TOKEN} @github.com/chaijs/chai-docs" HEAD:refs/heads/gh-pages -f
102
103
endif
103
104
104
105
.PHONY : all api-docs releases plugins install clean-plugins clean-api-docs docs-server nightly chaijs
You can’t perform that action at this time.
0 commit comments