Skip to content

Commit

Permalink
Trigger gh-pages build only when docs folder changes
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSander committed Mar 28, 2024
1 parent c216920 commit e492e33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/sphinx-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ name: Build HTML Docs

on:
push:
paths:
# Trigger only when docs/ folder is updated
- 'docs/**'
tags:
- v[0-9]+.[0-9]+.[0-9]+**
branches: [ master ]
Expand Down Expand Up @@ -60,4 +63,4 @@ jobs:
with:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e492e33

Please sign in to comment.