Skip to content

Update sphinx.yml

Update sphinx.yml #5

Workflow file for this run

name: Sphinx-docs
on:
push:
branches:
- main
- gh-pages
workflow_dispatch:
jobs:
pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Build HTML
run: python -m sphinx.cmd.build -M html docs/source docs/build
# - name: Build HTML
# uses: ammaraskar/sphinx-action@master
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
# - name: Deploy
# uses: sphinx-notes/pages@v3
# with:
# publish: true
- name: Deploy
if: github.ref != 'refs/heads/gh-pages'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.DOCSITE_TOKEN }}
publish_dir: docs/build/html