From b0eccc69606cbd16a57a2b9e0ecd3d686f80f9ff Mon Sep 17 00:00:00 2001
From: Mikkel RINGAUD <mikkel@milescode.dev>
Date: Thu, 22 Feb 2024 17:07:05 +0100
Subject: [PATCH] chore(ci): only run if docs folder was modified

---
 .github/workflows/deploy-docs.yml | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml
index 7be2ee8..7d00523 100644
--- a/.github/workflows/deploy-docs.yml
+++ b/.github/workflows/deploy-docs.yml
@@ -2,7 +2,15 @@ name: Deploy to GitHub Pages
 
 on:
   push:
-    branches: [ main ]
+    branches: 
+      - main
+    paths:
+      - 'docs/**'
+      - '!docs/README.md'
+  pull_request:
+    paths:
+      - "docs/**"
+      - "!docs/README.md"
   workflow_dispatch:
 
 # Allow this job to clone the repo and create a page deployment