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