Merge branch 'docs' #10
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy odoc to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: read-all | |
| concurrency: | |
| group: deploy-odoc | |
| cancel-in-progress: true | |
| jobs: | |
| deploy-odoc: | |
| name: Deploy odoc to GitHub Pages | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| contents: read | |
| id-token: write | |
| pages: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout tree | |
| uses: actions/checkout@v4 | |
| - name: Set-up OCaml | |
| uses: ocaml/setup-ocaml@v3 | |
| with: | |
| ocaml-compiler: 5 | |
| - name: Install | |
| run: opam install . --with-doc | |
| - name: Build documentation | |
| run: opam exec -- odoc_driver blue markov --remap --index-mld doc/main_index.mld | |
| - name: Set-up Pages | |
| uses: actions/configure-pages@v5 | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: _html | |
| - name: Deploy odoc to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |