diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..5dcd72e --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +stages: + - deploy + +pages: + stage: deploy + image: rust + variables: + CARGO_HOME: $CI_PROJECT_DIR/cargo + before_script: + - export PATH="$PATH:$CARGO_HOME/bin" + - mdbook --version || cargo install mdbook + script: + - mdbook build -d public + rules: + - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH + artifacts: + paths: + - public + cache: + paths: + - $CARGO_HOME/bin