webstat-collector/.github/workflows/sphinx.yaml

31 lines
733 B
YAML
Raw Normal View History

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:
python-version: 3.8
- 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/