Skip to content

Merge pull request #24 from SamJUK/feature/autobuild #32

Merge pull request #24 from SamJUK/feature/autobuild

Merge pull request #24 from SamJUK/feature/autobuild #32

Workflow file for this run

name: Build & Deploy Documentation
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Run Sphinx documentation build
uses: ammaraskar/sphinx-action@0.4
with:
docs-folder: "./"
- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v1
with:
path: _build/html/
deploy:
name: Deploy Documentation
needs: build
runs-on: ubuntu-latest
environment:
name: main
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1