forked from bootphon/phonemizer
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 986 Bytes
/
doc.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# build the sphinx documentation and pushes it to a doc branch, then used by github pages
name: Doc
on:
push:
branches: [ master ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [ 3.12 ]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
python -m pip install --upgrade pip setuptools
pip install .[doc]
- name: Build documentation
run: |
make --directory=docs html
touch ./docs/build/html/.nojekyll
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html