This repository has been archived by the owner on Dec 2, 2024. It is now read-only.
chore(deps): bump nixbuild/nix-quick-install-action from 25 to 26 (#1… #64
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: | |
push: | |
branches: | |
- main | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
build-haddock-site: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
environment: | |
name: github-pages | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: nixbuild/nix-quick-install-action@v26 | |
with: | |
nix_conf: | | |
experimental-features = nix-command flakes | |
accept-flake-config = true | |
- name: Build haddock site | |
run: | | |
nix build .#combined-haddock | |
mkdir dist | |
cp -RL ./result/share/doc/* ./dist/ | |
- uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: dist | |
target-folder: ${{ github.ref_name }} | |
# We publish our haddock, which is non-trivially big. | |
# So keeping the whole history is expensive, and anyway we don't need it. | |
single-commit: true |