Skip to content

attempt to publish docs 1 #6

attempt to publish docs 1

attempt to publish docs 1 #6

Workflow file for this run

name: documentation
on: [push, pull_request, workflow_dispatch]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v3
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Install module
run: |
pip install -e '.[docs]'
- name: Sphinx build
run: |
sphinx-apidoc -o doc src
sphinx-build doc .build
- name: Jekyll build
uses: actions/jekyll-build-pages@v1
with:
source: ./.build
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4