Skip to content

Commit

Permalink
ci docs
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlKCarlK committed Oct 16, 2024
1 parent 09dd597 commit 46b4306
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 46b4306

Please sign in to comment.