From cc95bfafda07fda0de04a93943b775ca6b2d19dc Mon Sep 17 00:00:00 2001 From: Felix Krull Date: Thu, 18 Oct 2018 01:37:50 +0200 Subject: [PATCH] Always build docs --- rust-bindings/rust/.gitlab-ci.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/rust-bindings/rust/.gitlab-ci.yml b/rust-bindings/rust/.gitlab-ci.yml index fe26571b..d65dc39e 100644 --- a/rust-bindings/rust/.gitlab-ci.yml +++ b/rust-bindings/rust/.gitlab-ci.yml @@ -7,7 +7,7 @@ before_script: stages: - build -- doc +- docs - publish libostree-sys: @@ -39,10 +39,18 @@ libostree_nightly: allow_failure: true # docs -pages: - stage: doc +docs: + stage: docs script: - cargo doc --verbose --features dox,lgpl-docs + artifacts: + paths: + - target/doc + +# publish +pages: + stage: publish + script: - cp -r target/doc public artifacts: paths: @@ -50,11 +58,10 @@ pages: only: - master -# publish publish_libostree-sys: stage: publish script: - - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN + - cargo publish --verbose --manifest-path libostree-sys/Cargo.toml --token $CRATES_IO_TOKEN when: manual publish_libostree: