From 3af969b25ccd0ba137abc999aba97e232e658efd Mon Sep 17 00:00:00 2001 From: Gabe Farrell Date: Sun, 15 Jun 2025 00:43:44 -0400 Subject: [PATCH] docs: only run workflow when docs are updated --- .github/workflows/astro.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/astro.yml b/.github/workflows/astro.yml index 71ee903..2da5fc4 100644 --- a/.github/workflows/astro.yml +++ b/.github/workflows/astro.yml @@ -1,14 +1,12 @@ name: Deploy to GitHub Pages on: - # Trigger the workflow every time you push to the `main` branch - # Using a different branch name? Replace `main` with your branch’s name push: branches: [main] - # Allows you to run this workflow manually from the Actions tab on GitHub. - workflow_dispatch: + paths: + - 'docs/**' + - '.github/workflows/**' -# Allow this job to clone the repo and create a page deployment permissions: contents: read pages: write