-
-
Notifications
You must be signed in to change notification settings - Fork 6
50 lines (42 loc) · 1.08 KB
/
docs.yml
File metadata and controls
50 lines (42 loc) · 1.08 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
name: Deploy Documentation
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'mkdocs.yml'
- '.github/workflows/docs.yml'
- 'README.md'
- 'CHANGELOG.md'
- 'CONTRIBUTING.md'
- 'ROADMAP.md'
- 'LICENSE'
workflow_dispatch:
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch all history for git info
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
- name: Install dependencies
run: |
pip install mkdocs-material
pip install mkdocs-autorefs
- name: Copy files to docs
run: |
cp CHANGELOG.md docs/
cp LICENSE docs/LICENSE.md
cp CONTRIBUTING.md docs/
cp ROADMAP.md docs/
- name: Build documentation
run: mkdocs build --strict
- name: Deploy to GitHub Pages
# CNAME file in docs/ dir will be deployed automatically
run: mkdocs gh-deploy --force