mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 19:31:12 +00:00
Add a .gitlab-ci.yml file to build and export the doc as gitlab pages
This commit is contained in:
parent
7de2c2dc7a
commit
6dc194e8fc
1 changed files with 20 additions and 0 deletions
20
.gitlab-ci.yml
Normal file
20
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,20 @@
|
|||
deploy:
|
||||
image: 'registry.freedesktop.org/gstreamer/gst-ci/amd64/fedora-build:latest'
|
||||
stage: deploy
|
||||
|
||||
script:
|
||||
- dnf install -y cmake
|
||||
- pip3 install --upgrade hotdoc meson
|
||||
- meson build/
|
||||
- ninja -C build/ GStreamer-doc
|
||||
- mv build/GStreamer-doc/html documentation/
|
||||
- ARTIFACTS_PATH=$(echo "${CI_JOB_URL}/artifacts/documentation/index.html" |sed "s/${CI_PROJECT_NAMESPACE}/-/g" | sed "s/gitlab/${CI_PROJECT_NAMESPACE}.pages/g")
|
||||
- echo ""
|
||||
- echo "=========================================="
|
||||
- echo "You can find the result at $ARTIFACTS_PATH"
|
||||
- echo "=========================================="
|
||||
- echo ""
|
||||
|
||||
artifacts:
|
||||
paths:
|
||||
- documentation/
|
Loading…
Reference in a new issue