-
-
Notifications
You must be signed in to change notification settings - Fork 13
38 lines (34 loc) · 938 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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