2022-06-13 22:27:05 +03:00
|
|
|
name: github pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-24 01:01:22 +03:00
|
|
|
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
|
2022-06-13 22:27:05 +03:00
|
|
|
|
|
|
|
- name: Install nix
|
2024-01-16 00:47:15 +03:00
|
|
|
uses: cachix/install-nix-action@6004951b182f8860210c8d6f0d808ec5b1a33d28 # v25
|
2022-06-13 22:27:05 +03:00
|
|
|
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
|
2022-06-13 22:27:05 +03:00
|
|
|
|
|
|
|
- name: Deploy
|
2023-09-05 11:41:01 +03:00
|
|
|
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 # v3.9.3
|
2022-06-13 22:27:05 +03:00
|
|
|
if: ${{ github.ref == 'refs/heads/main' }}
|
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
2023-09-05 11:41:01 +03:00
|
|
|
publish_dir: ./result
|