2020-09-02 11:28:33 -06:00
|
|
|
name: Publish Sphinx Built Webpages to Github Pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
paths:
|
|
|
|
- 'docs/**'
|
|
|
|
|
|
|
|
jobs:
|
2020-09-02 11:32:35 -06:00
|
|
|
release:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: '3.8'
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
sudo apt install pandoc
|
|
|
|
python -m pip install --upgrade pip
|
2020-09-02 12:14:51 -06:00
|
|
|
pip install -r docs/requirements.txt
|
2020-09-02 11:57:54 -06:00
|
|
|
|
|
|
|
- name: Update Sphinx
|
|
|
|
run: |
|
|
|
|
pip install -U sphinx
|
2020-09-02 11:32:35 -06:00
|
|
|
|
|
|
|
- name: Build Sphinx documentation
|
|
|
|
run: |
|
2020-09-02 12:14:51 -06:00
|
|
|
cd docs
|
2020-09-02 11:32:35 -06:00
|
|
|
make html
|
|
|
|
|
|
|
|
- name: Deploy to gh-pages
|
2020-09-02 11:36:42 -06:00
|
|
|
uses: peaceiris/actions-gh-pages@v3
|
2020-09-02 11:32:35 -06:00
|
|
|
with:
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
publish_dir: ./site
|