From 9a4e239a9a916ccd67ffd701f9378459ec7dda60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Thom?= Date: Tue, 5 Nov 2024 22:28:09 +0100 Subject: [PATCH] Only deploy pages on changes in frontend --- .github/pull_request_template.md | 4 +--- .github/workflows/{nextjs.yml => deploy-pages.yml} | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) rename .github/workflows/{nextjs.yml => deploy-pages.yml} (98%) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index 16aa8d60..1a42c76f 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -24,6 +24,4 @@ Provide any additional context or screenshots about the feature or fix here. ## Related Pull Requests / Discussions If there are other pull requests or discussions related to this change, please link them here: -- Related PR #1 -- Related PR #2 - +- Related PR # diff --git a/.github/workflows/nextjs.yml b/.github/workflows/deploy-pages.yml similarity index 98% rename from .github/workflows/nextjs.yml rename to .github/workflows/deploy-pages.yml index 6d7032ea..ca23f326 100644 --- a/.github/workflows/nextjs.yml +++ b/.github/workflows/deploy-pages.yml @@ -7,6 +7,9 @@ name: Deploy Next.js site to Pages on: push: branches: ["main"] + paths: + - frontend/** + workflow_dispatch: permissions: