Documentation: CI: GitLab Pages Example
Replace 'only' with 'rules'. 'only' is not actively developed anymore with GitLab (see https://docs.gitlab.com/ee/ci/yaml/#only--except)
This commit is contained in:
parent
f5598b2eee
commit
b862080006
|
@ -140,15 +140,15 @@ pages:
|
||||||
- export PATH="$PATH:$CARGO_HOME/bin"
|
- export PATH="$PATH:$CARGO_HOME/bin"
|
||||||
- mdbook --version || cargo install mdbook
|
- mdbook --version || cargo install mdbook
|
||||||
script:
|
script:
|
||||||
- mdbook build -d public
|
- mdbook build -d public
|
||||||
only:
|
rules:
|
||||||
- master
|
- if: '$CI_COMMIT_REF_NAME == "master"'
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- $CARGO_HOME/bin
|
- $CARGO_HOME/bin
|
||||||
```
|
```
|
||||||
|
|
||||||
After you commit and push this new file, GitLab CI will run and your book will be available!
|
After you commit and push this new file, GitLab CI will run and your book will be available!
|
||||||
|
|
Loading…
Reference in New Issue