[commit: ghc] master: gitlab: Deploy documentation snapshot via GitLab Pages (366f1c6)

git at git.haskell.org git at git.haskell.org
Fri Mar 22 15:00:50 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/366f1c68c1b688baab61934eee62c5a7992db525/ghc

>---------------------------------------------------------------

commit 366f1c68c1b688baab61934eee62c5a7992db525
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Thu Mar 21 12:59:11 2019 -0400

    gitlab: Deploy documentation snapshot via GitLab Pages


>---------------------------------------------------------------

366f1c68c1b688baab61934eee62c5a7992db525
 .gitlab-ci.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e5e7f7..ee0543a 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
+



More information about the ghc-commits mailing list