File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy Documentation to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' docs/**'
9+ - ' mkdocs.yml'
10+ - ' .github/workflows/docs.yml'
11+ workflow_dispatch :
12+
13+ permissions :
14+ contents : read
15+ pages : write
16+ id-token : write
17+
18+ concurrency :
19+ group : " pages"
20+ cancel-in-progress : false
21+
22+ jobs :
23+ build :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - name : Checkout repository
27+ uses : actions/checkout@v4
28+
29+ - name : Set up Python
30+ uses : actions/setup-python@v5
31+ with :
32+ python-version : ' 3.x'
33+
34+ - name : Install dependencies
35+ run : |
36+ pip install mkdocs-material[imaging]
37+ pip install pymdown-extensions
38+
39+ - name : Build documentation
40+ run : mkdocs build
41+
42+ - name : Setup Pages
43+ uses : actions/configure-pages@v4
44+
45+ - name : Upload artifact
46+ uses : actions/upload-pages-artifact@v3
47+ with :
48+ path : ./site
49+
50+ deploy :
51+ environment :
52+ name : github-pages
53+ url : ${{ steps.deployment.outputs.page_url }}
54+ runs-on : ubuntu-latest
55+ needs : build
56+ steps :
57+ - name : Deploy to GitHub Pages
58+ id : deployment
59+ uses : actions/deploy-pages@v4
60+
You can’t perform that action at this time.
0 commit comments