-
Notifications
You must be signed in to change notification settings - Fork 29
54 lines (51 loc) · 1.46 KB
/
doc.yml
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
47
48
49
50
51
52
53
54
name: Build Documentation
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
env:
LOCALTILESERVER_BUILDING_DOCS: true
jobs:
build-doc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9
# Install everything else
- name: Install other dependencies
run: |
pip install -r requirements_jupyter.txt -r requirements_doc.txt
- name: Install localtileserver
run: pip install -e .
- name: Scooby Report
run: python -c "import localtileserver;print(localtileserver.Report())"
- name: Build Documentation
working-directory: doc
run: make html
- name: Stash build
uses: actions/upload-artifact@v3
with:
name: doc-build
path: doc/build
deploy:
name: Publish Documentation
runs-on: ubuntu-latest
needs: build-doc
if: (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
name: doc-build
path: doc/build
- name: Deploy to GH Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/build/html
cname: localtileserver.banesullivan.com