Browse Source

Add CI for docs build

Martijn Braam 1 year ago
parent
commit
2b0c93e3cd
1 changed files with 25 additions and 1 deletions
  1. 25 1
      .gitlab-ci.yml

+ 25 - 1
.gitlab-ci.yml

@@ -1,8 +1,32 @@
 build:
+  stage: test
   image: alpine:edge
   before_script:
     - apk add --no-cache build-base meson samurai tiff-dev linux-headers scdoc
   script:
     - meson build --buildtype release --werror
     - ninja -C build
-    - cd build && meson test --no-rebuild
+    - cd build && meson test --no-rebuild
+
+docs:
+  stage: test
+  image: alpine:edge
+  before_script:
+    - apk add --no-cache python3 py3-sphinx make
+  script:
+    - cd docs
+    - make html
+
+pages:
+  stage: deploy
+  image: alpine:edge
+  before_script:
+    - apk add --no-cache python3 py3-sphinx make
+  script:
+    - cd docs
+    - make html
+    - mv _build/html ../public
+  artifacts:
+    paths:
+      - public
+  environment: production