-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (57 loc) · 1.69 KB
/
deploy.yml
File metadata and controls
69 lines (57 loc) · 1.69 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
66
67
68
69
name: Deploy developer.seatable.com (mkdocs material with github pages)
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
quality:
name: Quality checks
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Check documentation quality
run: python3 tests/validate_docs.py
check-links:
name: Check links
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Check links in markdown files
uses: lycheeverse/lychee-action@v2
with:
args: "--verbose --no-progress --root-dir docs --exclude-path 'docs/includes.md' --exclude 'http://127*' --exclude 'http://localhost' './docs/**/*.md'"
fail: true
deploy:
runs-on: ubuntu-latest
needs:
- quality
- check-links
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: actions/setup-python@v6
with:
python-version: 3.x
- name: Install dependencies
run: pip install -r requirements.txt
- name: Generate llms.txt and llms-full.txt
run: python3 scripts/generate_llms_txt.py
- name: Build with mkdocs (strict mode)
run: mkdocs build --strict --verbose
env:
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }}
CI: true
- name: Deploy to GitHub Pages
run: mkdocs gh-deploy --force
env:
MKDOCS_GIT_COMMITTERS_APIKEY: ${{ secrets.MKDOCS_GIT_COMMITTERS_APIKEY }}
CI: true