From 5f644301484a4075b7a6def3cfd14839cf6cd428 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Tue, 28 Mar 2023 18:09:22 +0200 Subject: [PATCH] [ci] use Makefile --- .github/workflows/build_offline_docs.yml | 9 +++------ .github/workflows/ci.yml | 3 +-- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_offline_docs.yml b/.github/workflows/build_offline_docs.yml index 51832ee3b..4c3d0837b 100644 --- a/.github/workflows/build_offline_docs.yml +++ b/.github/workflows/build_offline_docs.yml @@ -15,8 +15,7 @@ jobs: - master - stable steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v3 with: ref: ${{ matrix.branch }} @@ -25,10 +24,8 @@ jobs: sudo pip3 install -r requirements.txt sudo pip3 install codespell - # Build the HTML to upload it. - - name: Sphinx build - run: | - sphinx-build --color -d _build/doctrees . _build/html + - name: Sphinx build HTML + run: make SPHINXOPTS='--color' html - uses: actions/upload-artifact@v3 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 46fe83699..cff744615 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,5 +25,4 @@ jobs: # Use dummy builder to improve performance as we don't need the generated HTML in this workflow. - name: Sphinx build - run: | - sphinx-build --color -b dummy -d _build/doctrees -W . _build/html + run: make SPHINXOPTS='--color -W' dummy