Docs #324
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |