Skip to content

Commit 7e5e055

Browse files
Update deploy.yml
1 parent 0b71ee8 commit 7e5e055

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
name: Deploy to GitHub Pages
3939
needs: build
4040

41+
if: github.event_name == 'push' && github.ref == 'refs/heads/docs'
42+
4143
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
4244
permissions:
4345
pages: write # to deploy to Pages
@@ -49,6 +51,7 @@ jobs:
4951
url: ${{ steps.deployment.outputs.page_url }}
5052

5153
runs-on: ubuntu-latest
54+
5255
steps:
5356
- name: Deploy to GitHub Pages
5457
id: deployment

0 commit comments

Comments
 (0)