Skip to content

Commit

Permalink
try converting to circle 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dbp committed Aug 28, 2018
1 parent edee4e8 commit c42976d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 25 deletions.
33 changes: 33 additions & 0 deletions .circleci/config.yaml
@@ -0,0 +1,33 @@
version: 2
jobs:
build:
machine: true
steps:
- checkout
- restore-cache:
keys:
- stack-{{ checksum “stack.yaml” }}
- run: wget https://github.com/commercialhaskell/stack/releases/download/v1.6.1/stack-1.6.1-linux-x86_64.tar.gz -O /tmp/stack.tar.gz
- run: sudo mkdir /tmp/stack-download
- run: sudo tar -xzf /tmp/stack.tar.gz -C /tmp/stack-download
- run: sudo chmod +x /tmp/stack-download/stack-1.6.1-linux-x86_64/stack
- run: sudo mv /tmp/stack-download/stack-1.6.1-linux-x86_64/stack /usr/bin/stack
- run: stack --install-ghc runghc -j1 site build
- save-cache:
key: stack-{{ checksum “stack.yaml” }}
paths:
- “~/.stack”
- “.stack-work”
deploy:
machine: true
steps:
- run: sudo apt-get update -yy && sudo apt-get install awscli
- run: stack --install-ghc runghc -j1 site deploy


workflows:
version: 2
build_and_deploy:
jobs:
- build
- deploy
25 changes: 0 additions & 25 deletions circle.yml

This file was deleted.

7 changes: 7 additions & 0 deletions stack.yaml
@@ -0,0 +1,7 @@
resolver: lts-9.21

packages:
- "."

extra-deps:
- hakyll

0 comments on commit c42976d

Please sign in to comment.