Fix branch name in GitLab CI config
This commit is contained in:
parent
7d379eab34
commit
c9752e6dc3
|
@ -12,7 +12,7 @@ pages:
|
|||
script:
|
||||
- mdbook build -d public
|
||||
only:
|
||||
- master
|
||||
- main
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
|
|
@ -18,7 +18,7 @@ pages:
|
|||
script:
|
||||
- mdbook build -d public
|
||||
only:
|
||||
- master
|
||||
- main
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
|
@ -27,4 +27,12 @@ pages:
|
|||
- $CARGO_HOME/bin
|
||||
```
|
||||
|
||||
> Update the branch in pages > only as needed.
|
||||
|
||||
Using the latest Rust image, this will setup Cargo, make sure mdBook is installed, and then use it to build the book to a public directory. This public directory will then be used by GitLab Pages.
|
||||
|
||||
```bash
|
||||
git add .
|
||||
git commit -m "Add GitLab CI YML configuration"
|
||||
git push
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue