File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments