Files
pytorch/functorch/.github/workflows/docs.yml

40 lines
995 B
YAML

name: Build Docs
on:
pull_request:
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
build-docs:
runs-on: ubuntu-18.04
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
architecture: x64
- name: Checkout functorch
uses: actions/checkout@v2
- name: Install PyTorch Nightly
run: |
python3 -mpip install --pre torch>=1.12.0.dev -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html
- name: Install functorch
run: |
python3 setup.py install
- name: Install docs requirements
run: |
cd docs
python3 -mpip install -r requirements.txt
- name: Build docs
run: |
cd docs
make html
- name: Upload docs as GHA artifact
uses: actions/upload-artifact@v2
with:
name: docs.whl
path: docs/build/html