Skip to content

Commit

Permalink
CHanges learned while working on docs for OneMod
Browse files Browse the repository at this point in the history
  • Loading branch information
gphipps authored and gphipps committed Aug 1, 2024
1 parent 451dbfe commit 275a96e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
password: ${{ secrets.PYPI_API_TOKEN }}

docs:
environment:
name: github-pages
runs-on: ubuntu-latest
permissions:
pages: write
Expand All @@ -41,19 +43,18 @@ jobs:
with:
python-version: "3.12"
- name: Install dependencies
run: python -m pip install .[docs] --upgrade pip
run: |
python -m pip install .[docs] --upgrade pip
pip install sphinx sphinx-rtd-theme
- name: Generate API docs & Build sphinx documentation
run: |
git fetch --tags
cd docs
python build.py
cd ..
sphinx-build -M html docs docs-out
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './docs/pages'
path: './docs-out/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 275a96e

Please sign in to comment.