File tree Expand file tree Collapse file tree 3 files changed +76
-5
lines changed
Expand file tree Collapse file tree 3 files changed +76
-5
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 : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+
9+ # Allow one concurrent deployment
10+ concurrency :
11+ group : " pages"
12+ cancel-in-progress : true
13+
14+ jobs :
15+ build :
16+ runs-on : ubuntu-latest
17+
18+ steps :
19+ - name : Checkout
20+ uses : actions/checkout@v4
21+
22+ - name : Set up Python
23+ uses : actions/setup-python@v4
24+ with :
25+ python-version : ' 3.11'
26+
27+ - name : Install poetry
28+ uses : snok/install-poetry@v1
29+ with :
30+ version : latest
31+ virtualenvs-create : true
32+ virtualenvs-in-project : true
33+
34+ - name : Load cached venv
35+ id : cached-poetry-dependencies
36+ uses : actions/cache@v3
37+ with :
38+ path : .venv
39+ key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
40+
41+ - name : Install dependencies
42+ if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
43+ run : poetry install --with docs
44+
45+ - name : Build documentation
46+ run : poetry run mkdocs build
47+
48+ - name : Setup Pages
49+ if : github.ref == 'refs/heads/main'
50+ uses : actions/configure-pages@v4
51+
52+ - name : Upload artifact
53+ if : github.ref == 'refs/heads/main'
54+ uses : actions/upload-pages-artifact@v3
55+ with :
56+ path : ./site
57+
58+ deploy :
59+ if : github.ref == 'refs/heads/main'
60+ needs : build
61+ runs-on : ubuntu-latest
62+
63+ permissions :
64+ pages : write
65+ id-token : write
66+
67+ environment :
68+ name : github-pages
69+ url : ${{ steps.deployment.outputs.page_url }}
70+
71+ steps :
72+ - name : Deploy to GitHub Pages
73+ id : deployment
74+ uses : actions/deploy-pages@v4
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3434 - Installation : installation.md
3535 - Usage : usage.md
3636 - Configuration : configuration.md
37- - Postprocessing : postprocessing .md
38- - API Reference : api-reference .md
37+ - Postprocessing : postprocess .md
38+ - WRF-Chem : wrf-chem .md
You can’t perform that action at this time.
0 commit comments