-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 947 Bytes
/
mkdocs.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
39
40
name: Publish docs
on:
workflow_dispatch:
workflow_run:
workflows:
- Pytest
types:
- completed
branches:
- main
push:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/mkdocs.yml'
- 'mkdocs.yml'
jobs:
mkdocs:
name: Publish docs
runs-on: ubuntu-latest
if: github.event.workflow_run == null || github.event.workflow_run.conclusion == 'success'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download coverage report
uses: dawidd6/action-download-artifact@v2
with:
workflow: tests-pytest.yml
branch: main
event: push
name: coverage-report
path: docs/tests/coverage
- name: Deploy docs
uses: mhausenblas/mkdocs-deploy-gh-pages@master
env:
REQUIREMENTS: docs/requirements.txt
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}