-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (38 loc) · 943 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
41
name: Publish docs
on:
workflow_dispatch:
workflow_run:
workflows:
- Pytest
types:
- completed
branches:
- dev
push:
branches:
- dev
paths:
- 'docs/**'
- 'mkdocs.yml'
- '.github/workflows/mkdocs.yml'
jobs:
docs:
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: dev
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 }}