name: Deploy docs on: push: paths: - 'docs/**' - 'mkdocs.yml' branches: - master jobs: build: runs-on: [ubuntu-latest] steps: - uses: actions/checkout@v2 - name: Set up Python 3.7 uses: actions/setup-python@v1 with: python-version: 3.7 - name: Install dependencies run: | python -m pip install --upgrade pip setuptools python -m pip install -r docs/requirements.txt - name: Build Site run: mkdocs build - name: Deploy Site uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./site