From 8d30e8723211037599b3fe407e09508dc5215506 Mon Sep 17 00:00:00 2001 From: Jim Pivarski Date: Tue, 3 Dec 2024 18:52:10 -0600 Subject: [PATCH] only run the deployment step when modifying 'main' --- .github/workflows/deploy.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9b606a4..6320a8d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -60,4 +60,6 @@ jobs: # Deploy the book's HTML to GitHub Pages - name: Deploy to GitHub Pages id: deployment + # only deploy if merging into main, not if testing a PR + if: github.ref_name == 'main' uses: actions/deploy-pages@v2