Fix branch name in GitLab CI config

This commit is contained in:
James Skemp 2021-09-06 17:16:52 -05:00
parent 7d379eab34
commit c9752e6dc3
2 changed files with 10 additions and 2 deletions

View File

@ -12,7 +12,7 @@ pages:
script:
- mdbook build -d public
only:
- master
- main
artifacts:
paths:
- public

View File

@ -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
```