Commit c393e59 1 parent 00a5871 commit c393e59 Copy full SHA for c393e59
File tree 3 files changed +28
-4
lines changed
3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change 1
1
language : r
2
-
3
2
sudo : false
3
+ cache : packages
4
4
5
- cache :
6
- packages : true
5
+ before_script :
6
+ - chmod +x ./_build.sh
7
+ - chmod +x ./_deploy.sh
7
8
8
9
script :
9
- - Rscript -e 'bookdown::render_book("index.rmd")'
10
+ - ./_build.sh
11
+ - ./_deploy.sh
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -ev
4
+
5
+ Rscript -e ' bookdown::render_book("index.rmd")'
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ set -e
4
+
5
+ [ -z " ${GITHUB_PAT} " ] && exit 0
6
+ [ " ${TRAVIS_BRANCH} " != " master" ] && exit 0
7
+
8
+ git config --global user.email
" [email protected] "
9
+ git config --global user.name " Garrett Grolemund"
10
+
11
+ git clone https://${GITHUB_PAT} @github.com/${TRAVIS_REPO_SLUG} .git book-output
12
+ cd book-output/docs/
13
+ git rm -rf *
14
+ cp -r ../../docs/* ./
15
+ git add --all *
16
+ git commit -m" Update the book" || true
17
+ git push -q origin gh-pages
You can’t perform that action at this time.
0 commit comments