File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -21,10 +21,13 @@ jobs:
21
21
22
22
- name : Set up Python
23
23
uses : actions/setup-python@v3
24
+ with :
25
+ python-version : " 3.11"
24
26
25
27
- name : Install dependencies
26
28
run : |
27
29
python -m pip install --upgrade pip
30
+ pip install -r requirements.txt
28
31
python -m pip install sphinx furo
29
32
30
33
- name : Sphinx build
33
36
sphinx-apidoc -o docs/source piqture
34
37
sphinx-build docs/source docs/_build/html
35
38
39
+ - name : Deploy to preview branch for PRs
40
+ uses : peaceiris/actions-gh-pages@v3
41
+ if : github.event_name == 'pull_request'
42
+ with :
43
+ publish_branch : docs-preview/${{ github.head_ref }}
44
+ github_token : ${{ secrets.GITHUB_TOKEN }}
45
+ publish_dir : docs/_build/html
46
+ force_orphan : true
47
+
36
48
- name : Deploy to gh-pages
37
49
uses : peaceiris/actions-gh-pages@v3
38
50
if : ${{ github.ref == 'refs/heads/main' }}
You can’t perform that action at this time.
0 commit comments