Skip to content

Merge pull request #297 from bacpop/gha-docs #5

Merge pull request #297 from bacpop/gha-docs

Merge pull request #297 from bacpop/gha-docs #5

Workflow file for this run

name: "Build and publish docs"
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "docs/"
- uses: actions/upload-pages-artifact@v2
with:
name: github-pages
path: docs/_build/html/
retention-days: 1
deploy:
permissions:
contents: read
pages: write
id-token: write
needs: build
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@v3