Skip to content

Commit

Permalink
Merge pull request #564 from dkuegler/fix/doc-workflow
Browse files Browse the repository at this point in the history
Fix the target directory of the doc workflow
  • Loading branch information
dkuegler authored Aug 27, 2024
2 parents bf5dc15 + da6b406 commit f2a51b6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ jobs:
!doc-build/.doctrees
deploy:
if: github.event_name == 'push'
# only on push to dev or stable
if: ${{ github.event_name == 'push' && contains(fromJSON('["dev", "stable"]'), github.ref_name) }}
needs: build
timeout-minutes: 10
runs-on: ubuntu-latest
Expand All @@ -56,12 +57,12 @@ jobs:
with:
name: doc
path: doc
- name: Deploy dev documentation
- name: Deploy {dev,stable} documentation
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc
# destination_dir: github.event.ref_name will be dev or stable
destination_dir: ${{ github.event.ref_name }}
# destination_dir: github.ref_name will be dev or stable
destination_dir: ${{ github.ref_name }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

0 comments on commit f2a51b6

Please sign in to comment.