Release. #46
This file contains 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: Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install packages | |
run: sudo apt-get -y install ocaml-nox libyojson-ocaml-dev dune ocaml-odoc | |
- name: Build | |
run: dune build | |
- name: Test | |
run: | | |
sudo apt-get -y install pandoc | |
make -C examples test | |
- name: Generate documentation | |
run: make doc | |
- name: Deploy documentation | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./_build/default/_doc/_html |