Skip to content

Commit

Permalink
Documentation security improvement (#8)
Browse files Browse the repository at this point in the history
* Add workflow for hosting sphinx documentation

* Updated documentation workflow to be more secure

---------

Co-authored-by: Douglas O'Meara <[email protected]>
  • Loading branch information
douglas1850 and douglas1850 authored Jul 21, 2023
1 parent 746cabf commit 37760d0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ jobs:
- uses: actions/setup-python@v3
- name: Install dependencies
run: |
pip install sphinx sphinx_rtd_theme
pip install sphinx
python -m pip install sphinx-autoapi
python -m pip install sphinx_rtd_theme
- name: Sphinx build
run: |
sphinx-build doc _build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@f09b4d7e2f12f433806a6273c6b0025df1f7859d
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
Expand Down

0 comments on commit 37760d0

Please sign in to comment.