Optimize build workflows to trigger only when important files changed

This commit is contained in:
2025-08-25 15:39:31 +03:00
Unverified
parent 91a9c25a78
commit 2999579bc5
4 changed files with 14 additions and 6 deletions
+1 -3
View File
@@ -3,12 +3,10 @@ name: Build Electron Apps
on:
workflow_dispatch:
push:
branches: ["main", "electron"]
branches: ["main"]
paths:
- 'frontend/**'
- 'package.json'
- 'package-lock.json'
- 'frontend/electron/**'
- '.github/workflows/build.yml'
concurrency:
+10
View File
@@ -5,6 +5,16 @@ on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
paths:
- "backend/**"
- "frontend/**"
- "deployment/**"
- "**/package.json"
- ".nvmrc"
- ".github/workflows/deploy.yml"
- "!frontend/electron/**"
- "!frontend/src/electron/**"
- "!**.d.ts"
workflow_dispatch:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.