Merge branch 'build_and_deploy' into 'master'

Build and publish in gitlab.

See merge request !1
This commit is contained in:
notmycommit 2017-02-02 19:14:31 +00:00
commit 54e14ea355
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 = hakyll $ do
main = hakyllWith config $ do
tags <- extractTags
match "images/*" $ do