ocaml-opentelemetry/.github/workflows/gh-pages.yml
Simon Cruanes 4e80493e4a
run gha as root in docker
using the opam user wouldn't work for actions like checkout
2026-04-06 11:59:28 -04:00

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