mirror of
https://gitlab.freedesktop.org/upower/upower.git
synced 2025-12-25 16:10:03 +01:00
ci: Expose documentation as artifact
This commit is contained in:
parent
3c4f902fbd
commit
204fa25488
1 changed files with 21 additions and 0 deletions
|
|
@ -36,6 +36,7 @@ stages:
|
|||
- check-source
|
||||
- build
|
||||
- test
|
||||
- deploy
|
||||
|
||||
image: $FEDORA_IMAGE
|
||||
|
||||
|
|
@ -115,6 +116,26 @@ check_abi:
|
|||
variables:
|
||||
- $CI_PIPELINE_SOURCE == "schedule"
|
||||
|
||||
# Create docs artifact for the website.
|
||||
# Note that the last successful artifact build is always kept, so 1 day as
|
||||
# expiry is completely fine.
|
||||
docs:
|
||||
stage: deploy
|
||||
dependencies:
|
||||
- build
|
||||
script:
|
||||
- ninja -C _build/ UPower-doc
|
||||
artifacts:
|
||||
name: "docs"
|
||||
when: always
|
||||
expire_in: 1 day
|
||||
paths:
|
||||
- "_build/doc/html"
|
||||
only:
|
||||
- master
|
||||
except:
|
||||
variables:
|
||||
- $CI_PIPELINE_SOURCE == "schedule"
|
||||
|
||||
# CONTAINERS creation stage
|
||||
container_fedora_build:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue