-
Notifications
You must be signed in to change notification settings - Fork 151
60 lines (53 loc) 路 1.35 KB
/
Copy pathdocs.yml
File metadata and controls
60 lines (53 loc) 路 1.35 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
55
56
57
58
59
60
name: Docs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6.0.2
- name: Set up Python 3.13
uses: actions/setup-python@v6.2.0
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[test,docs]"
- name: Check generated aiograpi coverage docs
run: |
python scripts/generate_aiograpi_coverage.py --check
- name: Build docs
run: |
mkdocs build --strict
publish:
if: github.event_name == 'push' && github.repository == 'subzeroid/aiograpi-rest'
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- name: Set up Python 3.13
uses: actions/setup-python@v6.2.0
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ".[test,docs]"
- name: Generate aiograpi coverage docs
run: |
python scripts/generate_aiograpi_coverage.py
- name: Publish GitHub Pages
run: |
mkdocs gh-deploy --force