Skip to content

Commit

Permalink
Refs #91. Added Github action to deploy docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
SBriere committed Oct 30, 2023
1 parent 33e9589 commit c0da6ea
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/gen-doc-and-deploy-to-github-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: gen-doc-and-deploy-to-github-pages

on:
push:
branches: [main]
workflow_dispatch:
branches: [main]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11.4]

steps:
- name: Generate base documentation
working-directory: docs
run: |
pip install -r requirements.txt
make html
touch _build/html/.nojekyll
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: docs/_build/html

0 comments on commit c0da6ea

Please sign in to comment.