Skip to content

Commit

Permalink
Update Sphinx build and upload
Browse files Browse the repository at this point in the history
  • Loading branch information
arjbingly committed Apr 23, 2024
1 parent 99c277d commit 7bec7c1
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/sphinx-gitpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,41 @@ on:
branches:
- main

workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
docs:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Check out repository code
- name: Checkout
uses: actions/checkout@v4

- name: Sphinx Build
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "src/docs/"

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Github Pages upload
uses: actions/upload-artifact@v4
with:
name: DocumentationHTML
path: "src/docs/_build/html/"

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 7bec7c1

Please sign in to comment.