File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed
Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy Documentation
2+
3+ on :
4+ push :
5+ branches :
6+ - dev
7+ schedule :
8+ - cron : ' 0 0 * * *' # run nightly at midnight
9+
10+ # Allows manual workflow from Actions tab
11+ workflow_dispatch :
12+
13+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
14+ permissions :
15+ contents : write
16+ pages : write
17+ id-token : write
18+ pull-requests : write
19+
20+ # Allow one concurrent deployment
21+ concurrency :
22+ group : " pages"
23+ cancel-in-progress : true
24+
25+ jobs :
26+ # Build job
27+ build :
28+ runs-on : ubuntu-latest
29+ steps :
30+ - name : Checkout
31+ uses : actions/checkout@v3
32+
33+ - name : Setup Python
34+ uses : actions/setup-python@v4
35+ with :
36+ python-version : 3.x
37+ cache : ' pip'
38+
39+ - name : Install python dependencies
40+ run : pip install -r docs/requirements.txt
41+
42+ - name : Setup Pages
43+ id : pages
44+ uses : actions/configure-pages@v2
45+
46+ - name : Build with mkdocs
47+ run : |
48+ cd docs
49+ mkdocs build -c
50+
51+ - name : Deploy
52+ uses : JamesIves/github-pages-deploy-action@v4
53+ with :
54+ branch : gh-pages
55+ folder : ./docs/site
56+ clean : true
57+ # clean-exclude: pr-preview/
58+ target-folder : dev
59+ force : false
You can’t perform that action at this time.
0 commit comments