Treasury & Bank Transfer Management System — سامانه مدیریت خزانه‌داری و حواله‌های بانکی

1 name: Temporary TreasuryFlow Installer Build
2 on:
3 push:
4 branches:
5 - transfer-exe-to-drive-20261006
6
7 permissions:
8 contents: read
9
10 jobs:
11 build-installer:
12 runs-on: windows-latest
13 timeout-minutes: 45
14 steps:
15 - name: Checkout source branch
16 uses: actions/checkout@v4
17 with:
18 ref: phase-7-production-infrastructure-bank-golive
19
20 - name: Setup Node
21 uses: actions/setup-node@v4
22 with:
23 node-version: '24'
24 cache: 'npm'
25
26 - name: Install dependencies
27 run: npm ci
28
29 - name: Verify tests
30 run: npm test
31
32 - name: Typecheck
33 run: npm run typecheck
34
35 - name: Build app
36 run: npm run build
37
38 - name: Prepare standalone bundle
39 run: node scripts/prepare-standalone.mjs
40
41 - name: Build installable Windows EXE
42 run: npx electron-builder --win nsis --x64 --publish never
43
44 - name: Verify installer
45 shell: powershell
46 run: |
47 $p = 'release\TreasuryFlow-0.1.0-Windows-x64.exe'
48 if (!(Test-Path $p)) { throw 'Installer not found' }
49 $i = Get-Item $p
50 if ($i.Length -lt 100000000) { throw "Installer unexpectedly small: $($i.Length)" }
51 Get-FileHash $p -Algorithm SHA256 | Format-List
52
53 - name: Upload installer artifact
54 uses: actions/upload-artifact@v4
55 with:
56 name: treasuryflow-installer-transfer
57 path: release/TreasuryFlow-0.1.0-Windows-x64.exe
58 compression-level: 0
59 retention-days: 1