Skip to content

Commit

Permalink
[ghactions] Add publication of website
Browse files Browse the repository at this point in the history
  • Loading branch information
Wentzell committed Jul 5, 2024
1 parent 4ded2aa commit 8091c88
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest numpy scipy cvxpy
python -m pip install pytest numpy scipy cvxpy sphinx sphinx-rtd-theme nbsphinx
# if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Ruff
run: |
Expand All @@ -37,3 +37,16 @@ jobs:
run: |
pip install -e .
pytest -m "not triqs"
- name: Build Documention
run: |
cd doc
make html
- name: Deploy documentation to website
if: matrix.python-version == '3.12' && github.ref == 'refs/heads/main'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: doc/_build/html
branch: github.io
target-folder: docs/main

0 comments on commit 8091c88

Please sign in to comment.