.gitlab-ci.yml 577 Bytes
Newer Older
Tom Lutz's avatar
Tom Lutz committed
1 2
# This file is a template, and might need editing before it works on your project.
# Full project: https://gitlab.com/pages/plain-html
Tom Lutz's avatar
Tom Lutz committed
3 4 5 6 7 8 9 10 11 12 13 14 15
# 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
Tom Lutz's avatar
Tom Lutz committed
16 17 18
pages:
  stage: deploy
  script:
Tom Lutz's avatar
Tom Lutz committed
19
    - gitbook build . public # build to public path
Tom Lutz's avatar
Tom Lutz committed
20 21
  artifacts:
    paths:
Tom Lutz's avatar
Tom Lutz committed
22
      - public
Tom Lutz's avatar
Tom Lutz committed
23
  only:
Tom Lutz's avatar
Tom Lutz committed
24
    - master # this job will affect only the 'master' branch