Skip to content

Commit

Permalink
fix conditions for building stable docs (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
LegrandNico authored Jun 12, 2024
1 parent 6d5287c commit 4d1e136
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ jobs:
sphinx-build -j 4 -T -b html docs/source docs/build/html
- name: Deploy 🚀
if: github.ref == 'refs/heads/main'
if: startsWith(github.ref, 'refs/tags/') # only publish stable documentation on tag pushes
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build/html
BRANCH: gh-pages
target-folder: stable

- name: Deploy 🚀
if: github.ref != 'refs/heads/main'
if: github.ref != 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/build/html
Expand Down

0 comments on commit 4d1e136

Please sign in to comment.