diff options
author | Benjamin Berg <bberg@redhat.com> | 2022-07-08 15:06:56 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2022-07-08 15:26:06 +0200 |
commit | 204fa2548806ef593f79b17dfa986b33d185c77f (patch) | |
tree | 9392f12529c33b0c37ae2eb219a19ef4948bd6b6 | |
parent | 3c4f902fbdf6382366b515186aca28e0a868ed8b (diff) | |
download | upower-204fa2548806ef593f79b17dfa986b33d185c77f.tar.gz |
ci: Expose documentation as artifact
-rw-r--r-- | .gitlab-ci.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fe0f322..c75f837 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: |