This commit is contained in:
Simon Cruanes 2024-02-25 22:21:22 -05:00
parent de8b51a9a2
commit 37f8a237ff
2 changed files with 6 additions and 7 deletions

View file

@ -4,7 +4,6 @@ on:
push:
branches:
- main # Set a branch name to trigger deployment
pull_request:
jobs:
deploy:
@ -16,22 +15,22 @@ jobs:
- name: Use OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: '5.0.x'
ocaml-compiler: '5.1.x'
allow-prerelease-opam: true
dune-cache: true
- run: opam pin odoc 2.2.2 -y -n
# crash with 2.4, see https://github.com/ocaml/odoc/issues/1066
- name: Deps
run: opam install trace trace-tef trace-fuchsia ppx_trace -d
run: opam install odig trace trace-tef trace-fuchsia ppx_trace
- name: Build
run: opam exec -- dune build @doc
run: opam exec -- odig odoc --cache-dir=_doc/ trace trace-tef trace-fuchsia ppx_trace
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/default/_doc/_html/
publish_dir: ./_doc/html
destination_dir: .
enable_jekyll: true
enable_jekyll: false

View file

@ -20,7 +20,7 @@ jobs:
- '4.08.x'
- '4.12.x'
- '4.14.x'
- '5.0.x'
- '5.1.x'
runs-on: ${{ matrix.os }}
steps: