Debian Codegraph @

.github/workflows/documentation.yml

raw symbols SCIP
1 # SPDX-FileCopyrightText: 2023 Raphaël Doursenaud <[email protected]>
2 #
3 # SPDX-License-Identifier: CC0-1.0
4
5 name: Documentation
6
7 on:
8 pull_request:
9 branches:
10 - main
11 push:
12 branches:
13 - main
14 workflow_dispatch:
15
16 permissions:
17 contents: write
18
19 jobs:
20 build-github-pages:
21 runs-on: ubuntu-latest
22
23 steps:
24 - uses: actions/checkout@v3
25 - uses: actions/setup-python@v4
26 with:
27 python-version-file: 'pyproject.toml'
28 cache: 'pip'
29 - name: Upgrade pip
30 run: python3 -m pip install --upgrade pip setuptools wheel
31 - name: Install mido
32 run: python3 -m pip install --quiet .[build-docs]
33 - name: Sphinx build
34 run: sphinx-build -j auto docs docs/_build
35 - name: Deploy
36 uses: peaceiris/actions-gh-pages@v3
37 if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
38 with:
39 publish_branch: gh-pages
40 github_token: ${{ secrets.GITHUB_TOKEN }}
41 publish_dir: docs/_build/
42 force_orphan: true