-
Notifications
You must be signed in to change notification settings - Fork 5
32 lines (26 loc) · 806 Bytes
/
Copy pathdocs.yml
File metadata and controls
32 lines (26 loc) · 806 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
name: Publish docs to GitHub Pages
on:
push:
branches: [ master ]
jobs:
publish-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v14.1
- name: Get the magic cache (Cachix)
uses: cachix/cachix-action@v10
with:
name: mangaki
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- name: Run Sphinx
run: |
nix-shell default.nix \
-A shell \
--command "sphinx-build -d /tmp -b html docs /tmp/_build"
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@4.1.0
with:
branch: gh-pages
folder: /tmp/_build