From 92cf42dba63335611e66563b62a2d0ed3196cb9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Louf?= Date: Tue, 20 Sep 2022 23:36:01 +0200 Subject: [PATCH] Duplicate the job that builds the docs across workflows --- .github/workflows/build_documentation.yml | 2 -- .github/workflows/publish_documentation.yml | 12 +++++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml index 55646c04a..3541d904c 100644 --- a/.github/workflows/build_documentation.yml +++ b/.github/workflows/build_documentation.yml @@ -1,8 +1,6 @@ name: Build the documentation on: - push: - branches: [main] pull_request: branches: [main] diff --git a/.github/workflows/publish_documentation.yml b/.github/workflows/publish_documentation.yml index 52edd7657..677d5e451 100644 --- a/.github/workflows/publish_documentation.yml +++ b/.github/workflows/publish_documentation.yml @@ -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/checkout@v2.3.1 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