File tree Expand file tree Collapse file tree 3 files changed +54
-1
lines changed
Expand file tree Collapse file tree 3 files changed +54
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Build and deploy docs
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - dev
8+ pull_request :
9+ branches :
10+ - " *"
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Setup Python
20+ uses : actions/setup-python@v5
21+ with :
22+ python-version : " 3.11"
23+
24+ - name : Install dependencies
25+ run : pip install -r requirements.docs.txt
26+
27+ - name : Build docs
28+ run : mkdocs build -d dist
29+
30+ - name : Upload artifact
31+ uses : actions/upload-pages-artifact@v3
32+ with :
33+ path : ./dist
34+
35+ deploy :
36+ needs : build
37+ if : github.ref == 'refs/heads/main'
38+ permissions :
39+ pages : write
40+ id-token : write
41+
42+ environment :
43+ name : github-pages
44+ url : ${{ steps.deployment.outputs.page_url }}
45+
46+ runs-on : ubuntu-latest
47+ steps :
48+ - name : Deploy to GitHub Pages
49+ id : deployment
50+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1- name : Python package
1+ name : Test package
22
33on : [push]
44
Original file line number Diff line number Diff line change 1+ mkdocs>=1.6.1
2+ mkdocs-material>=9.6.12
3+ mkdocstrings[python]>=0.29.1
You can’t perform that action at this time.
0 commit comments