Merge pull request #1657 from lclc/gitlabPages

Documentation: CI: GitLab Pages Example
This commit is contained in:
Eric Huss 2021-10-03 14:51:08 -07:00 committed by GitHub
commit f55028b61a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 6 deletions

View File

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