From f61d3a74c4cae1cef1a5d20cf47270e41590ef92 Mon Sep 17 00:00:00 2001 From: shimwell Date: Sun, 5 Jan 2025 14:39:15 +0100 Subject: [PATCH] added shell --- .github/workflows/documentation_update.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation_update.yml b/.github/workflows/documentation_update.yml index 3cc1df72..dc5cd4fb 100644 --- a/.github/workflows/documentation_update.yml +++ b/.github/workflows/documentation_update.yml @@ -37,19 +37,20 @@ jobs: - name: install dependencies shell: bash -el {0} - run: | - python -m pip install .[docs] - + run: python -m pip install .[docs] + - name: Sphinx build tagged version if: startsWith(github.ref, 'refs/tags/') + shell: bash -el {0} run: | sphinx-build docs _build/${{ github.ref_name }} rm -rf _build/stable mkdir -p _build/stable sphinx-build linkcheck docs _build/stable - + - name: Sphinx build dev version if: (github.event_name == 'push' || github.event_name == 'pull_request') && !startsWith(github.ref, 'refs/tags/') + shell: bash -el {0} run: | rm -rf _build/dev mkdir -p _build/dev