Build and Deploy to Github Pages #642
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |