-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (36 loc) · 1.2 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.8'
cache: 'pip'
cache-dependency-path: "pyproject.toml"
- uses: actions/setup-python@v4
if: ${{ env.ACT }}
with:
python-version: '3.8'
##############################################
- name: Update pip and setuptools.
run: pip install --upgrade pip setuptools==57.1.0 wheel
- name: Install pyg special-like.
run: pip install pyg-lib torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.13.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/