Skip to content

Commit

Permalink
CI: try to switch to odig for API documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Kakadu <[email protected]>
  • Loading branch information
Kakadu committed Jul 25, 2024
1 parent d83257e commit 260e713
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/master_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,20 @@ jobs:

- name: Build API documentation
if: github.event_name != 'pull_request'
run: opam exec -- dune build @doc
run: |
opam exec -- make install odig
echo "ODIG_DOC_LOC=$(odig cache path)/html" >> $GITHUB_ENV
#opam exec -- gh-pages-amend $(odig cache path)/html doc

- name: Test
if: github.event_name != 'pull_request'
run: echo ${{ env.ODIG_DOC_LOC }}

- name: Deploy API documentation
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/default/_doc/_html
publish_dir: ${{ env.ODIG_DOC_LOC }}
keep_files: true
destination_dir: api

0 comments on commit 260e713

Please sign in to comment.