From 366f1c68c1b688baab61934eee62c5a7992db525 Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Thu, 21 Mar 2019 12:59:11 -0400 Subject: gitlab: Deploy documentation snapshot via GitLab Pages --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e5e7f7ce1..ee0543a078 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,6 +18,7 @@ stages: - cleanup # See Note [Cleanup on Windows] - packaging # Source distribution, etc. - hackage # head.hackage testing + - deploy # push documentation .only-default: &only-default only: @@ -718,3 +719,23 @@ nightly-hackage: only: variables: - $NIGHTLY + +pages: + stage: deploy + dependencies: + - doc-tarball + image: ghcci/x86_64-linux-deb9:0.2 + tags: + - x86_64-linux + script: + - mkdir -p public/doc + - tar -xf haddock.html.tar.xz -C public/doc + - tar -xf libraries.html.tar.xz -C public/doc + - tar -xf users_guide.html.tar.xz -C public/doc + - cp -f index.html public/doc + only: + - master + artifacts: + paths: + - public + -- cgit v1.2.1