Repository navigation
95 lines (76 loc) · 2.89 KB
/
Copy pathrelease.yml
File metadata and controls
95 lines (76 loc) · 2.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: macos-latest
target: aarch64-apple-darwin
tauri_script: node scripts/tauri-with-macos-helper.mjs
binary: bundle/macos/GitBoost.app/Contents/MacOS/GitBoost
- platform: windows-latest
target: x86_64-pc-windows-msvc
tauri_script: npm run tauri
binary: GitBoost.exe
runs-on: ${{ matrix.platform }}
env:
APPLE_SIGNING_IDENTITY: "-"
TAURI_ENV_PLATFORM: ${{ matrix.platform == 'windows-latest' && 'windows' || 'macos' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Validate release version
env:
RELEASE_TAG: ${{ github.ref_name }}
run: node scripts/version.mjs check-tag
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install dependencies
run: npm ci
- name: Run frontend tests
run: npm test
- name: Run release script tests
run: npm run test:scripts
- name: Run Rust tests
run: cargo test --manifest-path src-tauri/Cargo.toml
- name: Build and upload release
uses: tauri-apps/tauri-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tauriScript: ${{ matrix.tauri_script }}
tagName: ${{ github.ref_name }}
releaseName: GitBoost ${{ github.ref_name }}
releaseBody: |
GitBoost ${{ github.ref_name }}
- macOS: Apple Silicon DMG
- Windows: NSIS EXE / MSI
- Release symbols are stripped. This reduces exposed metadata and is not code obfuscation or virtualization.
## Code signing policy
macOS installers are not signed with an Apple Developer ID certificate or notarized. Windows downloads must be treated as unsigned unless their Authenticode signature verifies successfully. Download GitBoost only from this project's GitHub Releases page.
See the [Code signing policy](https://github.com/DiscoverBox/gitboost/blob/main/CODE_SIGNING_POLICY.md).
releaseDraft: true
prerelease: false
args: --target ${{ matrix.target }}
- name: Verify release executable
run: node scripts/verify-release-binary.mjs "src-tauri/target/${{ matrix.target }}/release/${{ matrix.binary }}" > native-report.json
- name: Upload binary verification report
uses: actions/upload-artifact@v4
with:
name: Native-report-${{ matrix.target }}
path: native-report.json
if-no-files-found: error