python-awips/.github/workflows/sphinx_build_deploy.yml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 11: cannot unmarshal !!str `Build` into model.Job line 12: cannot unmarshal !!str `ubuntu-...` into model.Job line 14: cannot unmarshal !!seq into model.Job
srcarter3 42e779c611
Create sphinx_build_deploy.yml
First pass at creating a gh-action for using sphinx to build webpages and deploy to gh-pages
2020-09-02 11:28:33 -06:00

34 lines
739 B
YAML

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