mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-05-06 01:15:11 -04:00
34 lines
953 B
YAML
34 lines
953 B
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
container: ghcr.io/ocaml-tracing/ocaml-opentelemetry/ci-5.4:latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install local packages
|
|
run: opam exec -- dune build @install && opam exec -- dune install
|
|
|
|
- name: Build documentation
|
|
run: |
|
|
opam exec -- odig odoc --cache-dir=_doc/ \
|
|
opentelemetry opentelemetry-client opentelemetry-lwt \
|
|
opentelemetry-cohttp-lwt opentelemetry-client-ocurl \
|
|
opentelemetry-client-ocurl-lwt opentelemetry-client-cohttp-lwt \
|
|
opentelemetry-client-cohttp-eio opentelemetry-logs
|
|
|
|
- name: Deploy
|
|
uses: peaceiris/actions-gh-pages@v3
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./_doc/html
|
|
enable_jekyll: false
|