Skip to content

Commit

Permalink
Create documentation.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry57 authored Oct 30, 2024
1 parent f4b482e commit 2c8eaa2
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build the documentation

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
name: Build docs (Python ${{ matrix.python-version }}, Windows)
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.9"]

steps:
- name: Checkout the branch
uses: actions/[email protected]
with:
persist-credentials: false

- name: Install and configure Poetry
uses: snok/install-poetry@v1
with:
version: 1.8.3
virtualenvs-create: true
virtualenvs-in-project: false
installer-parallel: true

- name: Install Pandoc
run: |
choco install pandoc
- name: Build the documentation with Sphinx
run: |
poetry install --all-extras
poetry run sphinx-build -b html source build/html

0 comments on commit 2c8eaa2

Please sign in to comment.