Skip to content

must have cabal update #33

must have cabal update

must have cabal update #33

Workflow file for this run

name: deploy site
on:
push:
branches:
- 'main'
permissions:
contents:
write
jobs:
deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- uses: actions/cache@v2
with:
path: |
~/.stack
./src/.stack-work
key: ${{ runner.os }}-stack-${{ hashFiles('./src/stack.yaml.lock', './src/site.cabal') }}
restore-keys: |
${{ runner.os }}-stack
- name: GitHub actions env workaround
run: 'echo "ACTIONS_ALLOW_UNSECURE_COMMANDS=true" >> $GITHUB_ENV'
- name: Generate metadata
run: |
cd src
mkdir -p metadata
./scripts/make-image-metadata
./scripts/git-metadata
- name: Install nix
uses: cachix/install-nix-action@v18
- name: Build site
run: |
nix develop --command ./ci/build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./src/_site