Skip to content

Commit b862080

Browse files
committed
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)
1 parent f5598b2 commit b862080

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guide/src/continuous-integration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,15 @@ pages:
140140
- export PATH="$PATH:$CARGO_HOME/bin"
141141
- mdbook --version || cargo install mdbook
142142
script:
143-
- mdbook build -d public
144-
only:
145-
- master
143+
- mdbook build -d public
144+
rules:
145+
- if: '$CI_COMMIT_REF_NAME == "master"'
146146
artifacts:
147-
paths:
148-
- public
147+
paths:
148+
- public
149149
cache:
150150
paths:
151-
- $CARGO_HOME/bin
151+
- $CARGO_HOME/bin
152152
```
153153

154154
After you commit and push this new file, GitLab CI will run and your book will be available!

0 commit comments

Comments
 (0)