# This is a basic workflow to help you get started with Actions name: DOC # Controls when the action will run. Triggers the workflow on push or pull request # events but only for the master branch on: push: branches: [ master ] pull_request: branches: [ master ] jobs: build: name: Build doc runs-on: ubuntu-latest steps: - name: workaround bug run: sudo apt-get update - name: checkout uses: actions/checkout@v3 - name: setup ocaml uses: ocaml/setup-ocaml@v3 with: ocaml-compiler: 4.14.2 - name: install deps run: | export OPAMYES=true opam repo add coq https://coq.inria.fr/opam/released opam repo add coq-dev https://coq.inria.fr/opam/core-dev opam repo add extra-dev https://coq.inria.fr/opam/extra-dev opam update opam install rocq-core.9.0.0 vsrocq-language-server coq-core opam install ./rocq-elpi.opam sudo apt-get update sudo apt-get install python3-pip -y - name: build doc run: opam exec -- make doc - name: Save artifact uses: actions/upload-artifact@v4 with: path: doc - name: deploy uses: JamesIves/github-pages-deploy-action@4.1.4 if: ${{ github.ref == 'refs/heads/master' }} with: branch: gh-pages folder: doc