Skip to content

Commit

Permalink
Add deploy-docs workflow for Sphinx -> GitHub Pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnans2006 committed Jun 9, 2024
1 parent 1113e5e commit 4109c55
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy docs

on:
push:
branches: [master]

permissions:
contents: write

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install -r docs/requirements.txt
- name: Sphinx build
run: |
cd docs
make html
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './build'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 4109c55

Please sign in to comment.