Debian Codegraph @

.github/workflows/doc.yml

raw symbols SCIP
1 # This is a basic workflow to help you get started with Actions
2
3 name: DOC
4
5 # Controls when the action will run. Triggers the workflow on push or pull request
6 # events but only for the master branch
7 on:
8 push:
9 branches: [ master ]
10 pull_request:
11 branches: [ master ]
12
13 jobs:
14 build:
15 name: Build doc
16 runs-on: ubuntu-latest
17 steps:
18
19 - name: workaround bug
20 run: sudo apt-get update
21
22 - name: checkout
23 uses: actions/checkout@v3
24
25 - name: setup ocaml
26 uses: ocaml/setup-ocaml@v3
27 with:
28 ocaml-compiler: 4.14.2
29
30 - name: install deps
31 run: |
32 export OPAMYES=true
33 opam repo add coq https://coq.inria.fr/opam/released
34 opam repo add coq-dev https://coq.inria.fr/opam/core-dev
35 opam repo add extra-dev https://coq.inria.fr/opam/extra-dev
36 opam update
37 opam install rocq-core.9.0.0 vsrocq-language-server coq-core
38 opam install ./rocq-elpi.opam
39 sudo apt-get update
40 sudo apt-get install python3-pip -y
41
42 - name: build doc
43 run: opam exec -- make doc
44
45 - name: Save artifact
46 uses: actions/upload-artifact@v4
47 with:
48 path: doc
49
50 - name: deploy
51 uses: JamesIves/[email protected]
52 if: ${{ github.ref == 'refs/heads/master' }}
53 with:
54 branch: gh-pages
55 folder: doc