-
Notifications
You must be signed in to change notification settings - Fork 3
35 lines (29 loc) · 855 Bytes
/
docs.yml
File metadata and controls
35 lines (29 loc) · 855 Bytes
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
name: Docs
# Only trigger, when the build workflow succeeded
on:
workflow_run:
workflows: ["Install"]
types: [completed]
branches: [main]
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.x
- name: Install dependencies
run: |
if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi
python -m pip install jupyter
- name: Install gpyrn
run: |
python -m pip install -e .
- name: Run examples
run: |
make -C docs
- run: python -m pip install mkdocs-material mkdocstrings[python]
- run: mkdocs gh-deploy --force