Skip to content

Initial Documentation #2

Initial Documentation

Initial Documentation #2

name: Build Sphinx Documentation
on:
push:
branches:
- main # You can change this to whatever branch you want to trigger the build
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8.18'
- name: Install dependencies
working-directory: xembody
run: |
python -m pip install --upgrade pip
pip install -e .[docs]
- name: Build Documentation
working-directory: xembody
run: |
make -C docs/ html # Assuming your Sphinx documentation is located in a directory named "docs"
- name: Upload Documentation Artifacts
uses: actions/upload-artifact@v2
working-directory: xembody

Check failure on line 37 in .github/workflows/create-documentation.yaml

View workflow run for this annotation

GitHub Actions / Build Sphinx Documentation

Invalid workflow file

The workflow is not valid. .github/workflows/create-documentation.yaml (Line: 37, Col: 7): Unexpected value 'working-directory'
with:
name: docs
path: docs/build/html # Adjust this path if your Sphinx output is in a different directory