Skip to content

Commit 6fc2240

Browse files
author
Andrey Kolkov
committed
add docs build on pr
update sphinx to modern stable version added publishing docs from pr to gh pages
1 parent b03119d commit 6fc2240

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/docs-build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Sphinx Docs Check"
2+
on:
3+
- pull_request
4+
5+
jobs:
6+
docs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- uses: ammaraskar/sphinx-action@master
11+
with:
12+
docs-folder: "./"
13+
- name: Deploy
14+
uses: peaceiris/actions-gh-pages@v3
15+
with:
16+
github_token: ${{ secrets.GITHUB_TOKEN }}
17+
publish_dir: build/html/
18+
commit_message: "branch: ${{ github.head_ref }}"

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Pillow
2-
Sphinx==1.8.5
2+
Sphinx==3.5.4
33
sphinx-rtd-theme
44
sphinxcontrib-httpdomain
55
sphinxcontrib-images

0 commit comments

Comments
 (0)