From 46b43065e172c502937965e6ef11f32cb65dd06d Mon Sep 17 00:00:00 2001 From: Carl Kadie Date: Wed, 16 Oct 2024 16:46:50 -0700 Subject: [PATCH] ci docs --- .github/workflows/docs.yml | 28 +++++++++++++++++++++++----- 1 file changed, 23 insertions(+), 5 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 84ec643..65e04b5 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -2,24 +2,42 @@ name: Build and Deploy Documentation on: push: - workflow_dispatch: # This allows manual triggering of the workflo + branches: + - main + workflow_dispatch: # This allows manual triggering of the workflow + jobs: build-and-deploy: runs-on: ubuntu-latest + steps: - name: Checkout the code uses: actions/checkout@v3 + - name: Install the latest version of uv uses: astral-sh/setup-uv@v3 + - name: Install Python run: uv python install + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Setup, Lint, and Test Python - run: uv sync --extra dev --extra sparse --extra samples - - name: Activate the virtual environment - run: source .venv/bin/activate + run: | + uv sync --extra dev --extra sparse --extra samples + source .venv/bin/activate + sphinx-build --version # Verify Sphinx is installed + - name: Build the Sphinx documentation working-directory: ./doc - run: make html + run: | + source ../.venv/bin/activate + make html + - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: