1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ release :
13+ strategy :
14+ fail-fast : false
15+ matrix :
16+ include :
17+ - platform : windows-latest
18+ target : x86_64-pc-windows-msvc
19+ label : Windows
20+ - platform : ubuntu-22.04
21+ target : x86_64-unknown-linux-gnu
22+ label : Linux
23+ - platform : macos-latest
24+ target : aarch64-apple-darwin
25+ label : macOS ARM
26+ - platform : macos-latest
27+ target : x86_64-apple-darwin
28+ label : macOS Intel
29+
30+ runs-on : ${{ matrix.platform }}
31+ name : Build ${{ matrix.label }}
32+
33+ steps :
34+ - uses : actions/checkout@v4
35+
36+ - name : Setup Bun
37+ uses : oven-sh/setup-bun@v2
38+ with :
39+ bun-version : latest
40+
41+ - name : Install Rust target
42+ run : rustup target add ${{ matrix.target }}
43+
44+ - name : Install Linux deps
45+ if : matrix.platform == 'ubuntu-22.04'
46+ run : |
47+ sudo apt-get update
48+ sudo apt-get install -y \
49+ libwebkit2gtk-4.1-dev \
50+ libgtk-3-dev \
51+ libayatana-appindicator3-dev \
52+ librsvg2-dev \
53+ patchelf
54+
55+ - name : Install frontend deps
56+ working-directory : desktop
57+ run : bun install
58+
59+ - name : Build Tauri app
60+ uses : tauri-apps/tauri-action@v0
61+ env :
62+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
63+ TAURI_SIGNING_PRIVATE_KEY : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
64+ TAURI_SIGNING_PRIVATE_KEY_PASSWORD : ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
65+ with :
66+ projectPath : desktop
67+ tagName : ${{ github.ref_name }}
68+ releaseName : Stackbox ${{ github.ref_name }}
69+ releaseBody : |
70+ ## What's new in ${{ github.ref_name }}
71+
72+ See [CHANGELOG.md](https://github.com/usestackbox/stackbox/blob/main/CHANGELOG.md) for details.
73+
74+ ## Install
75+
76+ **Quick install (macOS/Linux):**
77+ ```sh
78+ curl -fsSL https://usestackbox.github.io/stackbox/install.sh | sh
79+ ```
80+
81+ Or download the installer for your platform below.
82+ releaseDraft : true
83+ prerelease : false
84+ args : --target ${{ matrix.target }}
0 commit comments