From 593303ec80d05446e7287eee7e1e32bbdf657fb7 Mon Sep 17 00:00:00 2001 From: Alina1906 <39581976+Alina1906@users.noreply.github.com> Date: Sat, 6 Apr 2024 20:22:30 +0300 Subject: [PATCH] Create .gitlab-ci.yml --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml 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