Skip to content

Add doc build

Add doc build #1

Workflow file for this run

name: Docs
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
build-docs:
name: Build Documentation
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- Setup conda env
uses: conda-incubator/setup-miniconda@v2

Check failure on line 25 in .github/workflows/docs.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs.yml

Invalid workflow file

You have an error in your yaml syntax on line 25
with:
auto-update-conda: true
miniconda-version: "latest"
activate-environment: test
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install pytorch
run: python -m pip install torch==2.9.0.dev20250826 --extra-index-url https://download.pytorch.org/whl/nightly/cpu
- name: Install monarch
run: python -m pip install monarch-no-torch==0.1.0.dev20250826 --find-links assets/ci
- name: Install torchforge
run: ./scripts/install.sh
- name: Install docs dependencies
run: python -m pip install -r docs/requirements.txt
- name: Build docs
working-directory: docs
run: make html SPHINXOPTS='-W' -C docs
deploy-docs:
needs: build-docs
if: github.ref == 'refs/heads/main'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: docs
path: .
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs-html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4