Build and publish documentation

This commit is contained in:
Vladan Popovic 2020-09-06 04:42:26 +02:00
parent 2df73b76a8
commit eee471e9a7
7 changed files with 39 additions and 8 deletions

View file

@ -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
View 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/