name: Deploy Docs to Github Pages

on:
  push:
    branches:
      - 'master'
    paths:
      - 'docs/**'

jobs:
  build:
    name: Deploy Docs to Github Pages
    runs-on: ubuntu-18.04
    steps:
      - name: Checkout Repository
      - uses: actions/checkout@v2
        with:
          fetch-depth: 0
      - name: Set up Python
      - uses: actions/setup-python@v2
        with:
          python-version: '3.8'
      - name: Install MkDocs
        run: pip install -r docs/requirements.txt
      - name: Run MkDocs
        run: mkdocs gh-deploy
Add MkDocs to Github Actions
Add MkDocs to Github Actions
