MyPaths are not required and fail

Inputting paths are not necessary and will break ci, we can just leave paths out. We also changed 'master' to main since anyone reading this is probably going to be making mains
This commit is contained in:
kana 2021-06-11 20:21:28 +01:00 committed by GitHub
parent e440094b37
commit 27b1e05c87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

@ -26,7 +26,7 @@ before_script:
- cargo install-update -a
script:
- mdbook build path/to/mybook && mdbook test path/to/mybook
- mdbook build && mdbook test
```
## Deploying Your Book to GitHub Pages
@ -50,10 +50,10 @@ deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN
local-dir: path/to/mybook/book
local-dir: book
keep-history: false
on:
branch: master
branch: main
```
That's it!
@ -77,7 +77,7 @@ before_script:
- cargo install-update -a
script:
- mdbook build path/to/mybook && mdbook test path/to/mybook
- mdbook build && mdbook test
deploy:
provider: pages
@ -85,10 +85,10 @@ deploy:
edge: true
cleanup: false
github-token: $GITHUB_TOKEN
local-dir: path/to/mybook/book
local-dir: book
keep-history: false
on:
branch: master
branch: main
target_branch: gh-pages
```