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 : rebuild docs
2+ on :
3+ workflow_dispatch :
4+ inputs :
5+ commit :
6+ description : ' Commit SHA or branch/tag to build docs from'
7+ required : true
8+ type : string
9+ version :
10+ description : ' Version number to publish docs as'
11+ required : true
12+ type : string
13+
14+ jobs :
15+ docbuild :
16+ name : ubuntu-latest py3.9
17+ runs-on : ubuntu-latest
18+ defaults :
19+ run :
20+ shell : bash -l {0}
21+ steps :
22+ - uses : actions/checkout@v4
23+ with :
24+ ref : ${{ github.event.inputs.commit }}
25+ - name : Install uv
26+ uses : astral-sh/setup-uv@v5
27+ with :
28+ version : " 0.7.12"
29+ enable-cache : true
30+ cache-dependency-glob : " uv.lock"
31+ - name : " Set up Python"
32+ uses : actions/setup-python@v5
33+ with :
34+ python-version-file : " .python-version"
35+ - name : Install activitysim
36+ run : |
37+ uv sync --locked --dev
38+ - name : Build the docs
39+ run : |
40+ cd docs
41+ make clean
42+ make html
43+ - name : Push to GitHub Pages
44+ uses : peaceiris/actions-gh-pages@v3.8.0
45+ with :
46+ github_token : ${{ secrets.GITHUB_TOKEN }}
47+ # Token is created automatically by Github Actions, no other config needed
48+ publish_dir : ./docs/_build/html
49+ destination_dir : ${{ github.event.inputs.version }}
You can’t perform that action at this time.
0 commit comments