Merge pull request #1576 from kana4/master
MyPaths are not required and fail
This commit is contained in:
commit
3976c9d8f0
|
@ -26,7 +26,7 @@ before_script:
|
||||||
- cargo install-update -a
|
- cargo install-update -a
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mdbook build path/to/mybook && mdbook test path/to/mybook
|
- mdbook build && mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook
|
||||||
```
|
```
|
||||||
|
|
||||||
## Deploying Your Book to GitHub Pages
|
## Deploying Your Book to GitHub Pages
|
||||||
|
@ -50,10 +50,10 @@ deploy:
|
||||||
provider: pages
|
provider: pages
|
||||||
skip-cleanup: true
|
skip-cleanup: true
|
||||||
github-token: $GITHUB_TOKEN
|
github-token: $GITHUB_TOKEN
|
||||||
local-dir: path/to/mybook/book
|
local-dir: book # In case of custom book path: path/to/mybook/book
|
||||||
keep-history: false
|
keep-history: false
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: main
|
||||||
```
|
```
|
||||||
|
|
||||||
That's it!
|
That's it!
|
||||||
|
@ -77,7 +77,7 @@ before_script:
|
||||||
- cargo install-update -a
|
- cargo install-update -a
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- mdbook build path/to/mybook && mdbook test path/to/mybook
|
- mdbook build && mdbook test # In case of custom book path: mdbook build path/to/mybook && mdbook test path/to/mybook
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
provider: pages
|
provider: pages
|
||||||
|
@ -85,10 +85,10 @@ deploy:
|
||||||
edge: true
|
edge: true
|
||||||
cleanup: false
|
cleanup: false
|
||||||
github-token: $GITHUB_TOKEN
|
github-token: $GITHUB_TOKEN
|
||||||
local-dir: path/to/mybook/book
|
local-dir: book # In case of custom book path: path/to/mybook/book
|
||||||
keep-history: false
|
keep-history: false
|
||||||
on:
|
on:
|
||||||
branch: master
|
branch: main
|
||||||
target_branch: gh-pages
|
target_branch: gh-pages
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue