Skip to content

Commit

Permalink
Update publish_documentation.yml
Browse files Browse the repository at this point in the history
So that after PR is submitted the doc is built and updated.
  • Loading branch information
junpenglao committed Sep 20, 2022
1 parent 12badae commit 8cd61f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ jobs:
uses: actions/[email protected]
with:
persist-credentials: false

- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9

- name: Build docs
run: |
pip install -r requirements-doc.txt
sphinx-build -b html docs docs/build/html
- name: Publish the documentation
if: success() && github.ref == 'refs/heads/main'
uses: JamesIves/[email protected]
Expand Down

0 comments on commit 8cd61f5

Please sign in to comment.