Skip to content

Updated path to publish_dir #6

Updated path to publish_dir

Updated path to publish_dir #6

Workflow file for this run

name: Deploy Sphinx Docs to GitHub Pages
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
pip install sphinx sphinx-rtd-theme ghp-import
- name: Build Sphinx documentation
run: |
sphinx-build -M html ./source ./build --fail-on-warning
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html