Skip to content

Commit

Permalink
Merge pull request #1657 from lclc/gitlabPages
Browse files Browse the repository at this point in the history
Documentation: CI: GitLab Pages Example
  • Loading branch information
ehuss committed Oct 3, 2021
2 parents 0d88750 + b862080 commit f55028b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions guide/src/continuous-integration.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ pages:
- export PATH="$PATH:$CARGO_HOME/bin"
- mdbook --version || cargo install mdbook
script:
- mdbook build -d public
only:
- master
- mdbook build -d public
rules:
- if: '$CI_COMMIT_REF_NAME == "master"'
artifacts:
paths:
- public
paths:
- public
cache:
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!

0 comments on commit f55028b

Please sign in to comment.