From b862080006e9a7dda54ed5b130e295c375ea3480 Mon Sep 17 00:00:00 2001 From: Lucas Betschart Date: Wed, 29 Sep 2021 12:42:15 +0200 Subject: [PATCH] Documentation: CI: GitLab Pages Example Replace 'only' with 'rules'. 'only' is not actively developed anymore with GitLab (see https://docs.gitlab.com/ee/ci/yaml/#only--except) --- guide/src/continuous-integration.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/guide/src/continuous-integration.md b/guide/src/continuous-integration.md index c88c3774..ce075040 100644 --- a/guide/src/continuous-integration.md +++ b/guide/src/continuous-integration.md @@ -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!