From 47a9424a27facd820d792e78c8975dcf6c6b8f52 Mon Sep 17 00:00:00 2001 From: shimwell Date: Fri, 27 Sep 2024 01:04:07 +0100 Subject: [PATCH] corrected docs logic --- .github/workflows/documentation_update.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/documentation_update.yml b/.github/workflows/documentation_update.yml index 97d3e0f5..cea3f7a6 100644 --- a/.github/workflows/documentation_update.yml +++ b/.github/workflows/documentation_update.yml @@ -44,18 +44,18 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: | sphinx-build docs _build/${{ github.ref_name }} - sphinx-build docs _build + sphinx-build docs _build/docs - name: Sphinx build dev version if: (github.event_name == 'push' || github.event_name == 'pull_request') && !startsWith(github.ref, 'refs/tags/') run: | sphinx-build docs _build/dev - - name: Deploy to GitHub Pages - if: github.event_name == 'push' + - name: Deploy docs to GitHub Pages + if: github.event_name == 'push' || startsWith(github.ref, 'refs/tags/') uses: peaceiris/actions-gh-pages@v4 with: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: _build/docs + publish_dir: _build # with next rlease of actions-gh-pages # issue to allow force_orphan will be fixed # https://github.com/peaceiris/actions-gh-pages/issues/455