Skip to content

Merge pull request #295 from bacpop/gha-docs #3

Merge pull request #295 from bacpop/gha-docs

Merge pull request #295 from bacpop/gha-docs #3

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:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
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 # or specific "vX.X.X" version tag for this action