blog/.github/workflows/build.yml
2020-10-27 21:31:01 +01:00

20 lines
528 B
YAML

on: [push]
name: build
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-haskell@v1.1
with:
enable-stack: true
stack-version: 'latest'
- uses: actions/cache@v2
with:
path: |
~/.stack
.stack-work
key: ${{ hashFiles('stack.yaml') }}-${{ hashFiles('stack.yaml.lock') }}-${{ hashFiles('newblog.cabal') }}
- run: stack build
- run: stack exec site build