-
Notifications
You must be signed in to change notification settings - Fork 13
53 lines (42 loc) · 1.18 KB
/
build-deploy-docs.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
name: Documentation
on:
push:
branches: [ main ]
pull_request:
permissions:
contents: write
jobs:
build-docs:
name: Build Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install just
uses: taiki-e/install-action@v2
with: { tool: just }
- name: Install nightly toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install protoc
uses: arduino/setup-protoc@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install Python build dependencies
run: python -m pip install jmespath
- name: Install Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.111.3'
# extended: true
- name: Generate reference documentation
run: cd website && just refdoc
- name: Build site
run: cd website && just build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./website/public
cname: www.bbox.earth