Repository navigation
65 lines (57 loc) · 1.45 KB
/
Copy pathdocs.yml
File metadata and controls
65 lines (57 loc) · 1.45 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
61
62
63
64
65
name: Docs Update
on:
push:
branches:
- master
paths:
- 'docs/**'
- 'mkdocs.yml'
- 'README.md'
- 'CODE_OF_CONDUCT.md'
- 'CONTRIBUTING.md'
- 'LICENSE'
- 'SECURITY.md'
- 'CHANGELOG.md'
- 'AGENTS.md'
- 'CLAUDE.md'
- '**/SKILL.md'
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: write
concurrency:
group: docs-deploy
cancel-in-progress: false
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-python@v7
with:
python-version: '3.14'
- name: Install dependencies
run: |
pip install mkdocs-material
pip install "mkdocstrings[python]"
pip install mike
pip install pymarkdownlnt
pip install -e .
- name: Lint documentation
run: |
pymarkdownlnt scan -r -e ./.venv -e ./.git -e ./.github -e ./data -e ./tornadoapi_guard -e ./tests .
- name: Configure Git user
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
- name: Deploy documentation
run: |
mike deploy --push latest
mike set-default --push latest
- name: Deploy to GitHub Pages
run: |
mike list
git push origin gh-pages --force