-
Notifications
You must be signed in to change notification settings - Fork 36
46 lines (37 loc) · 966 Bytes
/
doc.yml
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
36
37
38
39
40
41
42
43
44
45
46
name: Doc workflow
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
name: Build doc
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install sphinx
run: |
pip3 install Sphinx sphinx-rtd-theme in-place
- name: Install ocaml
uses: avsm/setup-ocaml@v2
with:
ocaml-compiler: 4.13.x
opam-local-packages:
- name: Build
run: |
eval $(opam env)
opam install ./elpi.opam --deps-only --with-doc
make doc-build
- name: Save doc artifact
uses: actions/upload-artifact@v3
with:
name: doc
path: docs/build
- name: deploy
uses: JamesIves/[email protected]
if: ${{ github.ref == 'refs/heads/master' }}
with:
branch: gh-pages
folder: docs/build/html