-
Notifications
You must be signed in to change notification settings - Fork 70
35 lines (30 loc) · 728 Bytes
/
Copy pathdoc.yml
File metadata and controls
35 lines (30 loc) · 728 Bytes
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
29
30
31
32
33
34
35
name: Publish documentation
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build doc
run: nix develop -c mdbook build docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docs/book
publish:
runs-on: self-hosted
needs: build
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/mdbook' }}
environment:
name: github-pages
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4