File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed
Expand file tree Collapse file tree 2 files changed +55
-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 : [ main ]
6+ pull_request :
7+ branches : [ main ]
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout repository
20+ uses : actions/checkout@v3
21+
22+ - name : Setup Python
23+ uses : actions/setup-python@v4
24+ with :
25+ python-version : ' 3.10'
26+
27+ - name : Install dependencies
28+ run : |
29+ python -m pip install --upgrade pip
30+ pip install -r coffee_ws/src/coffee_head/docs/requirements.txt
31+ # Install ROS dependencies if needed
32+ pip install -e coffee_ws/src/coffee_head
33+
34+ - name : Build documentation
35+ run : |
36+ cd coffee_ws/src/coffee_head/docs
37+ make html
38+
39+ - name : Upload artifact
40+ uses : actions/upload-pages-artifact@v1
41+ with :
42+ path : coffee_ws/src/coffee_head/docs/build/html
43+
44+ deploy :
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+ runs-on : ubuntu-latest
49+ needs : build
50+ if : github.event_name == 'push' || github.event_name == 'workflow_dispatch'
51+ steps :
52+ - name : Deploy to GitHub Pages
53+ id : deployment
54+ uses : actions/deploy-pages@v2
Original file line number Diff line number Diff line change 1+
You can’t perform that action at this time.
0 commit comments