Skip to content

Docs

Docs #305

Workflow file for this run

name: Docs
on:
workflow_dispatch:
workflow_run:
workflows: ["Upload Python Package"]
branches: [master]
types:
- completed
permissions:
pull-requests: write
contents: write
jobs:
setup:
runs-on: ubuntu-latest
steps:
- name: Check if upstream workflow failed
if: ${{ github.event.workflow_run.conclusion == 'failure' }}
run: exit 1
docs:
runs-on: ubuntu-latest
needs: setup
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v4
- name: Install dependencies
run: |
pip install -r docs/requirements.txt
python docs/_static/playground_whl.py
git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Deploy to GH Pages
run: python -m mkdocs gh-deploy