Skip to content

Commit

Permalink
Merge pull request #331 from fusion-energy/fix-doc-action
Browse files Browse the repository at this point in the history
corrected docs logic
  • Loading branch information
shimwell authored Sep 27, 2024
2 parents 5d06c24 + 47a9424 commit 76e4c73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/documentation_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 76e4c73

Please sign in to comment.