From e17306f2c9fe76d927d04fb6407d4703ab651e9e Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Wed, 22 Jan 2025 10:07:58 +0100 Subject: [PATCH] chore: deploy docs only when they are changed --- .github/workflows/deploy-docs.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 5ab6dfca..1f1629df 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -1,10 +1,14 @@ name: Deploy to GitHub Pages on: - pull_request: - branches: [main] push: branches: [main] + paths: + - 'docs/**' + pull_request: + branches: [main] + paths: + - 'docs/**' permissions: contents: write