Build and publish in gitlab.
This commit is contained in:
parent
1c57811f1f
commit
c2ecc53bdf
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal 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
|
||||
|
||||
|
7
site.hs
7
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
|
||||
|
Loading…
Reference in New Issue
Block a user