Build and publish in gitlab.

This commit is contained in:
Dhananjay Balan 2017-02-02 15:42:52 +01:00
parent 1c57811f1f
commit c2ecc53bdf
2 changed files with 23 additions and 1 deletions

17
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,17 @@
image: dmp1ce/hakyll:latest
pages:
before_script:
- cabal update
- cabal install regex-compat
script:
- cabal build
- cabal run clean
- cabal run build
artifacts:
paths:
- public
only:
- master

View File

@ -9,8 +9,13 @@ import Text.Regex (splitRegex, mkRegex)
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
config :: Configuration
config = defaultConfiguration {
destinationDirectory = "public"
}
main :: IO () main :: IO ()
main = hakyll $ do main = hakyllWith config $ do
tags <- extractTags tags <- extractTags
match "images/*" $ do match "images/*" $ do