Merge branch 'build_and_deploy' into 'master'
Build and publish in gitlab. See merge request !1
This commit is contained in:
commit
54e14ea355
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