فینورا پرو - سامانه جامع حسابداری و صدور فاکتور
Build and publish Windows v2.0.2 invoice print margin fix
davoodmehraban89 committed
Oct 11, 2026 at 21:07 UTC
72d1c125730e63961a163547f3a1c3b20c75e862
1 file changed
+52
.github/workflows/release-v2-0-2.yml
new
+52
@@ -0,0 +1,52 @@
1
+name: Build and publish Factor-easyPro v2.0.2
2
+on:
3
+ push:
4
+ branches: [main]
5
+ paths:
6
+ - '.github/workflows/release-v2-0-2.yml'
7
+permissions:
8
+ contents: write
9
+jobs:
10
+ windows-release:
11
+ runs-on: windows-latest
12
+ timeout-minutes: 50
13
+ steps:
14
+ - uses: actions/checkout@v4
15
+ with:
16
+ ref: v2.0.2
17
+ persist-credentials: false
18
+ - uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '22'
21
+ cache: npm
22
+ - uses: dtolnay/rust-toolchain@stable
23
+ - name: Install dependencies
24
+ run: npm ci
25
+ - name: Test printing and regression suite
26
+ run: npm test
27
+ - name: Build Windows x64 installer
28
+ run: npm exec tauri build
29
+ - name: Generate SHA256 checksum
30
+ shell: pwsh
31
+ run: |
32
+ $installer = Get-ChildItem 'src-tauri/target/release/bundle/nsis/*2.0.2*x64-setup.exe' | Select-Object -First 1
33
+ if (!$installer) { throw 'Windows v2.0.2 installer missing' }
34
+ $hash = (Get-FileHash $installer.FullName -Algorithm SHA256).Hash
35
+ $hash + ' ' + $installer.Name | Out-File -FilePath SHA256SUMS.txt -Encoding ascii
36
+ Write-Output ('SHA256=' + $hash)
37
+ - name: Publish installer to GitHub Release
38
+ shell: pwsh
39
+ env:
40
+ GH_TOKEN: '${{ github.token }}'
41
+ run: |
42
+ gh release view v2.0.2 --json id *> $null
43
+ if ($LASTEXITCODE -ne 0) {
44
+ gh release create v2.0.2 --draft --title 'Factor-easyPro 2.0.2 — Clean invoice printing' --notes-file RELEASE_NOTES_v2.0.2_FA.md
45
+ if ($LASTEXITCODE -ne 0) { throw 'Could not create draft release' }
46
+ }
47
+ gh release upload v2.0.2 'src-tauri/target/release/bundle/nsis/Factor-easyPro_2.0.2_x64-setup.exe' SHA256SUMS.txt --clobber
48
+ if ($LASTEXITCODE -ne 0) { throw 'Could not upload installer' }
49
+ gh release edit v2.0.2 --draft=false --latest
50
+ if ($LASTEXITCODE -ne 0) { throw 'Could not publish release' }
51
+ gh release view v2.0.2 --json url,isDraft,assets
52
+ if ($LASTEXITCODE -ne 0) { throw 'Could not verify release' }