Skip to content

Commit

Permalink
Duplicate the job that builds the docs across workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rlouf committed Sep 20, 2022
1 parent beabba6 commit ab43b67
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build the documentation

on:
push:
branches: [main]
pull_request:
branches: [main]

Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/publish_documentation.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
name: Publish the documentation

on:
workflow_run:
workflows: [Build the documentation]
types: [completed]
push:
branches: [main]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout the branch
uses: actions/[email protected]
with:
persist-credentials: false

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

- name: Build the documentation with Sphinx
run: |
pip install -r requirements-doc.txt
sphinx-build -b html docs docs/build/html
Expand Down

0 comments on commit ab43b67

Please sign in to comment.