diff --git a/.github/workflows/documentation_update.yml b/.github/workflows/documentation_update.yml index cfbf4de7..94835072 100644 --- a/.github/workflows/documentation_update.yml +++ b/.github/workflows/documentation_update.yml @@ -45,13 +45,13 @@ jobs: run: | sphinx-build docs _build/${{ github.ref_name }} rm -rf _build/stable - mkdir _build/stable + mkdir -p _build/stable sphinx-build docs _build/stable - name: Sphinx build dev version if: (github.event_name == 'push' || github.event_name == 'pull_request') && !startsWith(github.ref, 'refs/tags/') run: | rm -rf _build/dev - mkdir _build/dev + mkdir -p _build/dev sphinx-build docs _build/dev - name: Deploy docs to GitHub Pages if: github.event_name == 'push' || startsWith(github.ref, 'refs/tags/')