22 lines
385 B
YAML
22 lines
385 B
YAML
|
stages:
|
||
|
- deploy
|
||
|
|
||
|
pages:
|
||
|
stage: deploy
|
||
|
image: rust:latest
|
||
|
variables:
|
||
|
CARGO_HOME: $CI_PROJECT_DIR/cargo
|
||
|
before_script:
|
||
|
- export PATH="$PATH:$CARGO_HOME/bin"
|
||
|
- mdbook --version || cargo install --debug mdbook
|
||
|
script:
|
||
|
- mdbook build -d public
|
||
|
only:
|
||
|
- master
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- public
|
||
|
cache:
|
||
|
paths:
|
||
|
- $CARGO_HOME/bin
|