Skip to content

Commit

Permalink
Setup doc build
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed May 15, 2024
1 parent ed4095a commit bd0f00f
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ammaraskar/sphinx-action@master
- uses: actions/setup-python@v5
with:
docs-folder: "docs/"
python-version: '3.10'
cache: 'pip'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install --upgrade sphinx sphinx-tabs
shell: bash
- name: Build documentation
run: |
make html
- name: clone gh-pages branch
uses: actions/checkout@v4
if: ${{ success() && github.event_name != 'pull_request' && !env.ACT }}
with:
ref: gh-pages
path: gh-pages
- name: Deploy Pages
if: ${{ success() && github.event_name != 'pull_request' && !env.ACT }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html

0 comments on commit bd0f00f

Please sign in to comment.