Skip to content

Merge pull request #186 from tcbrindle/pr/fix-ci-yet-again #434

Merge pull request #186 from tcbrindle/pr/fix-ci-yet-again

Merge pull request #186 from tcbrindle/pr/fix-ci-yet-again #434

Workflow file for this run

name: Documentation
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build documentation with Sphinx
uses: ammaraskar/sphinx-action@master
with:
build-command: "sphinx-build -b html . html"
docs-folder: 'docs/'
- name: Upload pages artifact
if: github.ref_name == 'main'
uses: actions/upload-pages-artifact@v1
with:
path: docs/html/
deploy:
if: github.ref_name == 'main'
needs: build
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@v1