[commit: ghc] wip/deploy-docs: gitlab: Deploy documentation snapshot via GitLab Pages (2158569)

git at git.haskell.org git at git.haskell.org
Thu Mar 21 17:02:01 UTC 2019


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

On branch  : wip/deploy-docs
Link       : http://ghc.haskell.org/trac/ghc/changeset/2158569dd25cfe7b0a93aaa83152361c7efe674a/ghc

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

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

    gitlab: Deploy documentation snapshot via GitLab Pages


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

2158569dd25cfe7b0a93aaa83152361c7efe674a
 .gitlab-ci.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6781411..432fb2e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -18,6 +18,7 @@ stages:
   - cleanup    # See Note [Cleanup on Windows]
   - packaging  # Source distribution, etc.
   - testing    # head.hackage, nofib testing
+  - deploy     # push documentation
 
 ############################################################
 # Runner Tags
@@ -678,3 +679,23 @@ nofib:
   artifacts:
     paths:
       - nofib.log
+
+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