about summary refs log tree commit diff
path: root/.github/workflows/deploy-doc.yml
blob: 32edf4606b1d62061b0ffb3c4d558e96bc244908 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build and Deploy Documentation

on:
  push:
    branches: [ main ]

jobs:
  deploy-doc:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3.0.0
      - uses: cachix/install-nix-action@v16
        with:
          nix_path: nixpkgs=channel:nixos-unstable
      - uses: cachix/cachix-action@v10
        with:
          name: buchstabensuppe
          authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
      - name: Build web output
        run: |
          nix-build -A deploy doc/web.nix
          ./result -w tmp
      - name: Deploy output to GitHub Pages
        uses: JamesIves/github-pages-deploy-action@v4.2.5
        with:
          branch: gh-pages
          clean: true
          folder: tmp