2020-09-06 04:42:26 +02:00
|
|
|
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:
|
2020-09-07 14:57:05 +02:00
|
|
|
python-version: 3.6
|
2020-09-06 04:42:26 +02:00
|
|
|
- name: Install Tox and any other packages
|
|
|
|
run: pip install tox
|
|
|
|
- name: Build Sphinx docs
|
|
|
|
run: tox -e docs
|
2020-09-06 11:02:57 +02:00
|
|
|
- name: Ignore jekyll in pages
|
|
|
|
run: touch docs/build/html/.nojekyll
|
2020-09-06 04:42:26 +02:00
|
|
|
- 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/
|