forked from 52North/WeatherRoutingTool
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (44 loc) · 1.03 KB
/
docs.yaml
File metadata and controls
46 lines (44 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build and deploy documentation using Sphinx and GitHub Pages
concurrency:
group: "pages"
cancel-in-progress: false
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'docs/**'
permissions:
contents: read
pages: write
id-token: write
jobs:
docs:
runs-on: ubuntu-latest
steps:
-
name: Checkout Repository
uses: actions/checkout@v5
-
name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.13'
-
name: Install requirements
run: |
sudo apt-get update && sudo apt-get -y install graphviz
pip3 install -r requirements.txt
pip3 install -r docs/requirements.txt
-
name: Build docs using Sphinx
run: cd docs && make html
-
name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs/_build/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4