dream2nix/.github/workflows/pages.yml

31 lines
829 B
YAML
Raw Normal View History

name: github pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Install nix
uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
with:
extra_nix_config: |
experimental-features = nix-command flakes
nix_path: nixpkgs=channel:nixos-unstable
- name: Build documentation book
2023-12-10 10:24:31 +03:00
run: nix build -L --show-trace .#website
- name: Deploy
2023-09-05 11:41:01 +03:00
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
2023-09-05 11:41:01 +03:00
publish_dir: ./result