-
Notifications
You must be signed in to change notification settings - Fork 10
38 lines (32 loc) · 923 Bytes
/
build-site.yaml
File metadata and controls
38 lines (32 loc) · 923 Bytes
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
name: Build Site
on:
workflow_call:
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
##############################################
# Skip caching if using a local runner.
- uses: actions/setup-python@v4
if: ${{ !env.ACT }}
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: "pyproject.toml"
- uses: actions/setup-python@v4
if: ${{ env.ACT }}
with:
python-version: '3.10'
##############################################
- name: Install Dependencies
run: pip install -e ".[build_docs]"
- name: Build mkdocs site
working-directory: docs
run: mkdocs build
- name: Upload the built site.
uses: actions/upload-artifact@v3
if: ${{ !env.ACT }}
with:
name: site
path: docs/site/