This commit is contained in:
Simon Cruanes 2024-02-25 22:21:22 -05:00
parent 9a3e41bac2
commit dc6eefc4cd
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 6 additions and 7 deletions

View file

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

View file

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