Build and publish in gitlab.
This commit is contained in:
		
							
								
								
									
										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 :: IO () | ||||||
| main = hakyll $ do | main = hakyllWith config $ do | ||||||
|     tags <- extractTags |     tags <- extractTags | ||||||
|  |  | ||||||
|     match "images/*" $ do |     match "images/*" $ do | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Dhananjay Balan
					Dhananjay Balan