diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8dce706 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 + + diff --git a/site.hs b/site.hs index 58a32ff..32950e9 100644 --- a/site.hs +++ b/site.hs @@ -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