-
Notifications
You must be signed in to change notification settings - Fork 7
48 lines (43 loc) · 1.22 KB
/
deploy-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
47
48
name: Deploy doc
on:
push:
branches:
- main
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
ocaml-version:
- 4.08.1
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use OCaml ${{ matrix.ocaml-version }}
uses: avsm/setup-ocaml@v1
with:
ocaml-version: ${{ matrix.ocaml-version }}
- name: Build
run: |
opam install dune containers fmt
opam install mparser re ptime oseq seq diet
opam install yojson fileutils
opam install utop ocp-indent
opam install alcotest crowbar
opam install js_of_ocaml js_of_ocaml-ppx lwt_ppx
opam install js_of_ocaml-lwt qcheck qcheck-alcotest
opam install angstrom
opam install sexplib
opam install odoc
eval $(opam env); make doc
mkdir public
cp -r _build/default/_doc/_html/* public/
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: ./public