Skip to content

Tutorials

Tutorials #7

Workflow file for this run

name: Documentation
on:
pull_request:
paths:
- ".github/workflows/docs.yml"
- "docs/**"
- "e3nn_core/**"
- "e3nn_mlx/**"
- "pyproject.toml"
push:
branches: [main]
paths:
- ".github/workflows/docs.yml"
- "docs/**"
- "e3nn_core/**"
- "e3nn_mlx/**"
- "pyproject.toml"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: pip
- name: Install package and documentation tools
run: python -m pip install -e ".[docs]"
- name: Build documentation
run: python -m sphinx -W --keep-going -b html docs docs/_build/html
- name: Configure GitHub Pages
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
uses: actions/configure-pages@v5
- name: Upload Pages artifact
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
uses: actions/upload-pages-artifact@v4
with:
path: docs/_build/html
deploy:
if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4