From 9afc3d4717c7aa611927d8664294cfd4aa55335c Mon Sep 17 00:00:00 2001 From: jatinkrmalik Date: Mon, 19 Jan 2026 17:37:28 -0800 Subject: [PATCH] Fix CI: Auto-detect web/ changes for website build & deploy [web] - Build website when files in web/ directory are modified - Deploy website on workflow_dispatch without requiring [web] tag - Keep backward compatibility with [web] commit message trigger --- .github/workflows/unified-pipeline.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unified-pipeline.yml b/.github/workflows/unified-pipeline.yml index 9e0bc2f..6990358 100644 --- a/.github/workflows/unified-pipeline.yml +++ b/.github/workflows/unified-pipeline.yml @@ -123,7 +123,10 @@ jobs: web-build: name: 🌐 Build Website runs-on: ubuntu-latest - if: contains(github.event.head_commit.message, '[web]') || github.event_name == 'workflow_dispatch' + if: | + contains(github.event.head_commit.message, '[web]') || + github.event_name == 'workflow_dispatch' || + (github.event_name == 'push' && contains(join(github.event.commits.*.modified, ','), 'web/')) steps: - uses: actions/checkout@v4 @@ -154,7 +157,11 @@ jobs: name: 🚀 Deploy Website runs-on: ubuntu-latest needs: [python-test, web-build] - if: github.event_name == 'push' && github.ref == 'refs/heads/main' && contains(github.event.head_commit.message, '[web]') + if: | + github.ref == 'refs/heads/main' && + (contains(github.event.head_commit.message, '[web]') || + github.event_name == 'workflow_dispatch' || + (github.event_name == 'push' && contains(join(github.event.commits.*.modified, ','), 'web/'))) steps: - uses: actions/checkout@v4