-
Notifications
You must be signed in to change notification settings - Fork 67
54 lines (47 loc) · 1.12 KB
/
docs.yml
File metadata and controls
54 lines (47 loc) · 1.12 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Documentation
on:
push:
branches:
- main
- '**'
paths:
- 'docs/**'
- 'src/viral_ngs/**'
- '.readthedocs.yml'
- '.github/workflows/docs.yml'
pull_request:
branches:
- main
paths:
- 'docs/**'
- 'src/viral_ngs/**'
- '.readthedocs.yml'
- '.github/workflows/docs.yml'
jobs:
build-docs:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 0 # Full history for git describe version
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
pip install -r docs/requirements.txt
pip install -e .
- name: Build documentation
run: |
cd docs
sphinx-build -W -b html . _build/html
- name: Upload documentation artifact
uses: actions/upload-artifact@v6
with:
name: documentation
path: docs/_build/html/
retention-days: 7