From cc92a992519cca5aa6959ac252480ef372002763 Mon Sep 17 00:00:00 2001 From: Tom Lutz <tom.lutz@cba.mit.edu> Date: Thu, 26 Oct 2017 14:53:03 -0400 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index be65921..a7be807 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,13 +1,24 @@ # This file is a template, and might need editing before it works on your project. # Full project: https://gitlab.com/pages/plain-html +# pages: +# stage: deploy +# script: +# - mkdir .public +# - cp -r _book/* .public +# - mv .public public +# artifacts: +# paths: +# - public +# only: +# - master + +# the 'pages' job will deploy and build your site to the 'public' path pages: stage: deploy script: - - mkdir .public - - cp -r * .public - - mv .public public + - gitbook build . public # build to public path artifacts: paths: - - public + - public only: - - master + - master # this job will affect only the 'master' branch -- GitLab