Browse Source

Add .gitlab-ci to generate docs

Signed-off-by: Niels Thykier <niels@thykier.net>
devuan-deployment
Niels Thykier 2 years ago
parent
commit
28953b2224
1 changed files with 33 additions and 0 deletions
  1. +33
    -0
      .gitlab-ci.yml

+ 33
- 0
.gitlab-ci.yml View File

@@ -0,0 +1,33 @@
#tests-stretch:
# image: debian:stretch
# script: debian/run-ci

#tests-sid:
# image: debian:sid
# script: debian/run-ci

docs:
stage: test
image: debian:sid
script:
- apt-get update
- apt-get install -y python3-sphinx
- sphinx-build -M html doc _build
- mv _build/html docs
artifacts:
paths:
- docs
pages:
stage: deploy
dependencies:
- docs
script:
- rm -fr public
- mkdir public
- mv docs public/docs
artifacts:
paths:
- public
# only:
# - master

Loading…
Cancel
Save