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: on:
workflow_dispatch: workflow_dispatch:
push: push:
branches: ["main", "electron"] branches: ["main"]
paths: paths:
- 'frontend/**' - 'frontend/**'
- 'package.json' - 'package.json'
- 'package-lock.json'
- 'frontend/electron/**'
- '.github/workflows/build.yml' - '.github/workflows/build.yml'
concurrency: concurrency:
+10
View File
@@ -5,6 +5,16 @@ on:
# Runs on pushes targeting the default branch # Runs on pushes targeting the default branch
push: push:
branches: ["main"] branches: ["main"]
paths:
- "backend/**"
- "frontend/**"
- "deployment/**"
- "**/package.json"
- ".nvmrc"
- ".github/workflows/deploy.yml"
- "!frontend/electron/**"
- "!frontend/src/electron/**"
- "!**.d.ts"
workflow_dispatch: workflow_dispatch:
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
@@ -1,5 +1,5 @@
import "../electron.d.ts"; import "../../electron.d.ts";
import { PRODUCT_NAME } from "./config"; import { PRODUCT_NAME } from "../config.ts";
if (window.electronInterface !== undefined) { if (window.electronInterface !== undefined) {
console.log("Running in Electron"); console.log("Running in Electron");
+1 -1
View File
@@ -16,4 +16,4 @@ import "./init";
import "./profile"; import "./profile";
import "./message-context-menu"; import "./message-context-menu";
import "./user-profile-dialog"; import "./user-profile-dialog";
import "./electron"; import "./electron/electron";