-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.26 KB
/
build-site.yaml
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
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 CPU version of torch.
run: pip install torch==1.11.0+cpu --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install the torch-geometric.
run: pip install pyg_lib==0.2.0 torch_scatter==2.0.9 torch_sparse==0.6.16 torch_cluster==1.6.0 torch_spline_conv==1.2.1 -f https://data.pyg.org/whl/torch-1.11.0+cpu.html
- 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/