python-awips/.github/workflows/sphinx_build_deploy.yml
srcarter3 0ab8d731fc
Update sphinx_build_deploy.yml
add a call to update sphinx before running it to build the documentation
2020-09-02 11:57:54 -06:00

39 lines
857 B
YAML

name: Publish Sphinx Built Webpages to Github Pages
on:
push:
branches:
- master
paths:
- 'docs/**'
jobs:
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
pip install -r requirements.txt
- name: Update Sphinx
run: |
pip install -U sphinx
- name: Build Sphinx documentation
run: |
make html
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site