Build and publish documentation
This commit is contained in:
parent
2df73b76a8
commit
eee471e9a7
7 changed files with 39 additions and 8 deletions
2
.github/workflows/build.yaml
vendored
2
.github/workflows/build.yaml
vendored
|
@ -8,7 +8,7 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python: [3.6, 3.7, 3.8]
|
||||
python: [3.8]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
28
.github/workflows/sphinx.yaml
vendored
Normal file
28
.github/workflows/sphinx.yaml
vendored
Normal file
|
@ -0,0 +1,28 @@
|
|||
name: documentation
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-delpoy:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Install Python
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.8
|
||||
- name: Install Tox and any other packages
|
||||
run: pip install tox
|
||||
- name: Build Sphinx docs
|
||||
run: tox -e docs
|
||||
- name: Deploy
|
||||
if: success()
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
publish_branch: gh-pages
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: docs/build/html/
|
Loading…
Add table
Add a link
Reference in a new issue