aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDhravya <[email protected]>2024-03-31 14:50:31 -0700
committerDhravya <[email protected]>2024-03-31 14:50:31 -0700
commitfaf4f980af32c0b6af73fe0a6591785b2a7c9535 (patch)
treeb8cc7417899daf06d7d1e8d0bc11e4216663539a /.github
parent(ci): extension path mismatch fix (diff)
downloadsupermemory-faf4f980af32c0b6af73fe0a6591785b2a7c9535.tar.xz
supermemory-faf4f980af32c0b6af73fe0a6591785b2a7c9535.zip
(ci): conditionally build and deploy
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 056fca08..653bb11e 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,18 +1,27 @@
-name: Build
+name: Build and deploy changes
on:
push:
branches: [main]
+ paths:
+ - 'apps/web/**'
+ - 'apps/extension/**'
pull_request:
branches: [main]
+ paths:
+ - 'apps/web/**'
+ - 'apps/extension/**'
jobs:
build-extension:
+ if: contains(github.event.head_commit.modified, 'apps/extension/') || contains(github.event.head_commit.added, 'apps/extension/') || contains(github.event.head_commit.removed, 'apps/extension/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/buildextension
+
build-app:
+ if: contains(github.event.head_commit.modified, 'apps/web/') || contains(github.event.head_commit.added, 'apps/web/') || contains(github.event.head_commit.removed, 'apps/web/')
runs-on: ubuntu-latest
steps:
- name: Checkout repo