-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 862 Bytes
/
odoc.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
name: Deploy odoc
on:
push:
release:
types:
- published
jobs:
deploy-doc:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout tree
uses: actions/checkout@v4
- name: Set-up OCaml 5.1.1
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "5.1.1"
# disable cache, otherwise generated documentation is missing files
dune-cache: false
- run: opam install . --deps-only --with-doc
shell: bash
- run: opam exec -- dune build --verbose @doc
shell: bash
- name: Deploy odoc to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ github.token }}
publish_dir: _build/default/_doc/_html
destination_dir: ${{ github.head_ref || github.ref_name }}