File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 1212
1313``` yaml
1414language : rust
15- sudo : false
15+ os : linux
16+ dist : xenial
1617
1718cache :
1819 - cargo
@@ -39,18 +40,24 @@ permissions (or "repo" for private repositories). Go to your repository's Travis
3940CI settings page and add an environment variable named `GITHUB_TOKEN` that is
4041marked secure and *not* shown in the logs.
4142
43+ Whilst still in your repository's settings page, navigate to Options and change the
44+ Source on GitHub pages to `gh-pages`.
45+
4246Then, append this snippet to your `.travis.yml` and update the path to the
4347`book` directory :
4448
4549` ` ` yaml
4650deploy:
4751 provider: pages
48- skip-cleanup: true
52+ strategy: git
53+ edge: true
54+ cleanup: false
4955 github-token: $GITHUB_TOKEN
5056 local-dir: path/to/mybook/book
5157 keep-history: false
5258 on:
5359 branch: master
60+ target_branch: gh-pages
5461` ` `
5562
5663That's it!
You can’t perform that action at this time.
0 commit comments