mirror of
https://github.com/ocaml-tracing/ocaml-opentelemetry.git
synced 2026-05-05 17:04:52 -04:00
38 lines
1 KiB
YAML
38 lines
1 KiB
YAML
name: github pages
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: ghcr.io/ocaml-tracing/ocaml-opentelemetry/ci-5.4:latest
|
|
options: --user root
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- run: chown -R opam:opam .
|
|
|
|
- name: Install local packages
|
|
run: su opam -c "opam exec -- dune build @install && opam exec -- dune install"
|
|
|
|
- name: Build documentation
|
|
run: |
|
|
su opam -c "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
|