mirror of
https://gitlab.com/fabinfra/fabaccess/fabaccess-api.git
synced 2025-03-12 06:41:51 +01:00
try gitbook
This commit is contained in:
parent
a9ea612073
commit
64863ec96c
@ -1,39 +1,31 @@
|
|||||||
# This file is a template, and might need editing before it works on your project.
|
# requiring the environment of NodeJS 10
|
||||||
# To contribute improvements to CI/CD templates, please follow the Development guide at:
|
image: node:10
|
||||||
# https://docs.gitlab.com/ee/development/cicd/templates.html
|
|
||||||
# This specific template is located at:
|
|
||||||
# https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Pages/Jekyll.gitlab-ci.yml
|
|
||||||
|
|
||||||
# Template project: https://gitlab.com/pages/jekyll
|
# add 'node_modules' to cache for speeding up builds
|
||||||
# Docs: https://docs.gitlab.com/ee/pages/
|
cache:
|
||||||
image: ruby:2.6
|
paths:
|
||||||
|
- node_modules/ # Node modules and dependencies
|
||||||
variables:
|
|
||||||
JEKYLL_ENV: production
|
|
||||||
LC_ALL: C.UTF-8
|
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- gem install bundler
|
- npm install gitbook-cli -g # install gitbook
|
||||||
- bundle install
|
- gitbook fetch 3.2.3 # fetch final stable version
|
||||||
|
- gitbook install # add any requested plugins in book.json
|
||||||
|
|
||||||
test:
|
test:
|
||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- bundle exec jekyll build -d test -s docs/decisions
|
- gitbook build ./docs/decisions public # build to public path
|
||||||
artifacts:
|
rules:
|
||||||
paths:
|
- if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
|
||||||
- test
|
|
||||||
except:
|
# the 'pages' job will deploy and build your site to the 'public' path
|
||||||
variables:
|
|
||||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
script:
|
||||||
- bundle exec jekyll build -d public -s docs/decisions
|
- gitbook build ./docs/decisions public # build to public path
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
only:
|
expire_in: 1 week
|
||||||
variables:
|
rules:
|
||||||
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user