Skip to content

Commit f55028b

Browse files
authored
Merge pull request #1657 from lclc/gitlabPages
Documentation: CI: GitLab Pages Example
2 parents 0d88750 + b862080 commit f55028b

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)