File tree Expand file tree Collapse file tree 1 file changed +52
-0
lines changed
Expand file tree Collapse file tree 1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Docs
2+
3+ on :
4+ push :
5+ branches :
6+ - dev
7+ - main
8+ pull_request :
9+ branches :
10+ - dev
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
27+ uses : actions/checkout@v4
28+
29+ - name : Setup Pages
30+ uses : actions/configure-pages@v5
31+
32+ - name : Build with mkdocs-material
33+ run : |
34+ pip install mkdocs-material
35+ mkdocs build
36+
37+ - name : Upload artifact
38+ uses : actions/upload-pages-artifact@v3
39+ with :
40+ path : ./site
41+
42+ deploy :
43+ environment :
44+ name : github-pages
45+ url : ${{ steps.deployment.outputs.page_url }}
46+ runs-on : ubuntu-latest
47+ needs : build
48+ if : github.ref == 'refs/heads/main' || github.event_name == 'workflow_dispatch'
49+ steps :
50+ - name : Deploy to GitHub Pages
51+ id : deployment
52+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments