Skip to content

Commit

Permalink
Add GHA for docs building
Browse files Browse the repository at this point in the history
  • Loading branch information
janash committed May 7, 2024
1 parent 655aa75 commit 478a87c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/sphinx_build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build and Deploy Docs

on:
push:
branches:
- main

permissions: write-all

jobs:
deploy_docs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # needed for tag/version

- uses: actions/setup-python@v4
with:
python-version: '3.11'

- name: Install package
shell: bash -l {0}
working-directory: .
run: |
python -m pip install -r requirements.txt
- name: Build Documentation
shell: bash -l {0}
working-directory: .
run: |
make html
- name: Deploy Documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./_build/html
branch: gh-pages

0 comments on commit 478a87c

Please sign in to comment.