Skip to content

Commit 40aa539

Browse files
committed
chore: add CI for doc
1 parent 02e2ae6 commit 40aa539

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master # Set a branch name to trigger deployment
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@main
13+
14+
- name: Cache opam
15+
id: cache-opam
16+
uses: actions/cache@v2
17+
with:
18+
path: ~/.opam
19+
key: opam-ubuntu-latest-4.12.0
20+
21+
- uses: avsm/setup-ocaml@v1
22+
with:
23+
ocaml-version: '4.12.0'
24+
25+
- name: Pin
26+
run: opam pin -n .
27+
28+
- name: Depext
29+
run: opam depext -yt iter
30+
31+
- name: Deps
32+
run: opam install -d . --deps-only
33+
34+
- name: Build
35+
run: opam exec -- dune build @doc
36+
37+
- name: Deploy
38+
uses: peaceiris/actions-gh-pages@v3
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./_build/default/_doc/_html/
42+
destination_dir: dev
43+
enable_jekyll: true

0 commit comments

Comments
 (0)