Files
pgn_to_tex/.github/workflows/docs.yml
T

59 lines
1.2 KiB
YAML

name: Documentation
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Build odoc
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Set up OCaml
uses: ocaml/setup-ocaml@v3
with:
ocaml-compiler: 5.4.x
- name: Install documentation dependencies
run: opam install . --deps-only --with-doc
- name: Build documentation
run: opam exec -- dune build @doc
- name: Disable Jekyll processing
run: touch _build/default/_doc/_html/.nojekyll
- name: Configure GitHub Pages
uses: actions/configure-pages@v5
- name: Upload the documentation artifact
uses: actions/upload-pages-artifact@v3
with:
path: _build/default/_doc/_html
deploy:
name: Deploy to GitHub Pages
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4