Merge pull request #849 from donatik27/master #79
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: Deploy Docs to GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
name: GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Use OCaml "4.14.0" | |
uses: avsm/setup-ocaml@v1 | |
with: | |
ocaml-version: 4.14.0 | |
- name: Build Documentation | |
run: | | |
eval $(opam env) | |
opam pin add . -y | |
opam install odoc | |
make website | |
cd website/website | |
yarn | |
yarn build | |
pwd | |
ls | |
ls build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./website/website/build/snarky |