Skip to content

Commit

Permalink
Create build_docs.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dnguyend committed Aug 11, 2024
1 parent 15071b7 commit cba7922
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build_docs.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish Sphinx Documentation

on:
push:
branches:
- main

jobs:
publish_sphinx_docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
pip install -e .
pip install sphinx-rtd-theme
- name: Sphinx build
run: |
sphinx-build docs docs/_build/html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html
force_orphan: true

0 comments on commit cba7922

Please sign in to comment.