Skip to content

Build and Deploy to Github Pages #642

Build and Deploy to Github Pages

Build and Deploy to Github Pages #642

Workflow file for this run

name: "Build and Deploy to Github Pages"
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-haddock-site:
runs-on: ubuntu-latest
permissions:
contents: write
environment:
name: github-pages
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@main
- name: Use Magic Nix Cache
uses: DeterminateSystems/magic-nix-cache-action@main
- name: Build Haddock
run: |
nix develop --accept-flake-config --command bash ./scripts/combined-haddock.sh
ls -la combined_haddock_dst
# - name: Deploy Haddock Site
# uses: JamesIves/github-pages-deploy-action@v4
# with:
# # This folder is generated in the step above
# folder: combined_haddock_dst
# target-folder: ${{ github.ref_name }}
# # We publish our Haddock documentation, which is quite large.
# # Keeping the entire history is costly and unnecessary.
# single-commit: true