Skip to content

Build and deploy docs #2

Build and deploy docs

Build and deploy docs #2

name: Build and deploy docs
on:
workflow_call:
workflow_dispatch:
jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
- name: Building docs
run: |
pip install nox
nox -s docs_build
- uses: actions/upload-pages-artifact@v2
with:
name: github-pages
path: docs/build/html
deploy-docs:
needs: build-docs
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2