Skip to content

Commit

Permalink
ci: build documentation once through ci to have something on the page
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Dec 13, 2023
1 parent c917867 commit c735879
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,37 @@ jobs:
release-type: python
package-name: sortedl1
bump-minor-pre-major: true
docs:
permissions:
pages: write
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pybind11 setuptools
- name: Install
run: pip install .[docs]

- name: Build documentation
run: |
sphinx-apidoc -o docs/source sortedl1
cd docs
make html
- name: Setup pages
uses: actions/configure-pages@v3

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "docs/build/html/"

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

0 comments on commit c735879

Please sign in to comment.