From 1120db212bed6b224ef21ffeb3984d0bcb7cfd96 Mon Sep 17 00:00:00 2001 From: p-zach Date: Mon, 10 Feb 2025 20:14:13 -0500 Subject: [PATCH] Only redeploy on docs change --- .github/workflows/deploy.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 64aa22df3..cf44fb604 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,10 +1,15 @@ -# This file was created automatically with `myst init --gh-pages` 🪄 💚 +# This file was initialized with `myst init --gh-pages` name: MyST GitHub Pages Deploy on: push: - # Runs on pushes targeting the default branch + # Runs on pushes targeting the develop branch branches: [develop] + # Only trigger redeploy if Markdown files, notebooks, or config changes + paths: + - '**.md' + - '**.ipynb' + - 'myst.yml' env: # `BASE_URL` determines the website is served from, including CSS & JS assets # You may need to change this to `BASE_URL: ''`