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 12
12
13
13
``` yaml
14
14
language : rust
15
- sudo : false
15
+ os : linux
16
+ dist : xenial
16
17
17
18
cache :
18
19
- cargo
@@ -39,18 +40,24 @@ permissions (or "repo" for private repositories). Go to your repository's Travis
39
40
CI settings page and add an environment variable named `GITHUB_TOKEN` that is
40
41
marked secure and *not* shown in the logs.
41
42
43
+ Whilst still in your repository's settings page, navigate to Options and change the
44
+ Source on GitHub pages to `gh-pages`.
45
+
42
46
Then, append this snippet to your `.travis.yml` and update the path to the
43
47
`book` directory :
44
48
45
49
` ` ` yaml
46
50
deploy:
47
51
provider: pages
48
- skip-cleanup: true
52
+ strategy: git
53
+ edge: true
54
+ cleanup: false
49
55
github-token: $GITHUB_TOKEN
50
56
local-dir: path/to/mybook/book
51
57
keep-history: false
52
58
on:
53
59
branch: master
60
+ target_branch: gh-pages
54
61
` ` `
55
62
56
63
That's it!
You can’t perform that action at this time.
0 commit comments