Skip to content

.github/workflows/ci.yaml #878

.github/workflows/ci.yaml

.github/workflows/ci.yaml #878

Workflow file for this run

on:
pull_request: {}
push:
branches:
- main
schedule:
- cron: "0 12 * * *" # Ensure meetup info is up to date
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: ~/.stack
key: v2-${{ hashFiles('zfoh.cabal', 'stack.yaml', 'stack.yaml.lock') }}
- uses: haskell-actions/setup@v2
with:
enable-stack: true
stack-no-global: true
- run: stack build --pedantic
- run: stack exec zfoh build
- if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: _site