Add a .gitlab-ci.yml file to build and export the doc as gitlab pages
[platform/upstream/gstreamer.git] / .gitlab-ci.yml
1 deploy:
2   image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora-build:latest'
3   stage: deploy
4
5   script:
6   - dnf install -y cmake
7   - pip3 install --upgrade hotdoc meson
8   - meson build/
9   - ninja -C build/ GStreamer-doc
10   - mv build/GStreamer-doc/html documentation/
11   - ARTIFACTS_PATH=$(echo "${CI_JOB_URL}/artifacts/documentation/index.html" |sed "s/${CI_PROJECT_NAMESPACE}/-/g" | sed "s/gitlab/${CI_PROJECT_NAMESPACE}.pages/g")
12   - echo ""
13   - echo "=========================================="
14   - echo "You can find the result at $ARTIFACTS_PATH"
15   - echo "=========================================="
16   - echo ""
17
18   artifacts:
19     paths:
20     - documentation/