Debian Codegraph @

.github/workflows/sphinx.yml

raw symbols SCIP
1 ---
2 name: Sphinx docs to pages
3
4 on:
5 push:
6 branches:
7 - main
8
9 jobs:
10 deploy:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v6
14
15 - name: Setup Python
16 uses: actions/setup-python@v6
17 with:
18 python-version: '3.8'
19
20 - name: Upgrade pip
21 run: |
22 # install pip=>20.1 to use "pip cache dir"
23 python3 -m pip install --upgrade pip
24
25 - name: Get pip cache dir
26 id: pip-cache
27 run: echo "::set-output name=dir::$(pip cache dir)"
28
29 - name: Cache dependencies
30 uses: actions/cache@v4
31 with:
32 path: ${{ steps.pip-cache.outputs.dir }}
33 key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
34 restore-keys: |
35 ${{ runner.os }}-pip-
36
37 - name: Install dependencies
38 run: python3 -m pip install -r ./requirements.txt
39
40 - run: make -C Documentation html
41
42 - name: Deploy
43 uses: peaceiris/actions-gh-pages@v4
44 with:
45 github_token: ${{ secrets.GITHUB_TOKEN }}
46 publish_dir: ./Documentation/_build/html