mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
ci: Build and publish docs
This commit is contained in:
parent
55e08e4f52
commit
c1ee4151d0
2 changed files with 25 additions and 4 deletions
|
@ -1,8 +1,29 @@
|
|||
test:
|
||||
stages:
|
||||
- build
|
||||
- pages
|
||||
|
||||
build:
|
||||
stage: build
|
||||
script:
|
||||
- dnf install -y meson python3-mypy
|
||||
- dnf install -y meson python3-mypy python3-sphinx python3-pip
|
||||
- pip3 install furo
|
||||
- mypy gtkblueprinttool
|
||||
- meson _build
|
||||
- meson _build -Ddocs=true
|
||||
- ninja -C _build
|
||||
- ninja -C _build test
|
||||
- ninja -C _build install
|
||||
artifacts:
|
||||
paths:
|
||||
- _build
|
||||
|
||||
pages:
|
||||
stage: pages
|
||||
dependencies:
|
||||
- build
|
||||
script:
|
||||
- mv _build/docs/en public
|
||||
artifacts:
|
||||
paths:
|
||||
- public
|
||||
only:
|
||||
- main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue