Skip to content

added Sphinx workflows #3

added Sphinx workflows

added Sphinx workflows #3

Workflow file for this run

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install sphinx sphinx_issues myst_parser nbsphinx sphinx_copybutton
- name: Build HTML
uses: ammaraskar/[email protected]
with:
docs_folder: "docs/source"
build_command: "sphinx-build -b html . ../build/html"
- name: Upload artifacts
uses: actions/upload-artifact@v1
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html