1+ name : Release
2+
3+ on :
4+ release :
5+ types : [created]
6+
7+ jobs :
8+ publish-tauri :
9+ permissions :
10+ contents : write
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ include :
15+ - platform : ' macos-latest' # for Arm based macs (M1 and above).
16+ args : ' --target aarch64-apple-darwin'
17+ - platform : ' macos-latest' # for Intel based macs.
18+ args : ' --target x86_64-apple-darwin'
19+ - platform : ' ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
20+ args : ' '
21+ - platform : ' windows-latest'
22+ args : ' '
23+
24+ runs-on : ${{ matrix.platform }}
25+ steps :
26+ - uses : actions/checkout@v4
27+
28+ - name : setup node
29+ uses : actions/setup-node@v4
30+ with :
31+ node-version : lts/*
32+
33+ - name : install Rust stable
34+ uses : dtolnay/rust-toolchain@stable
35+ with :
36+ # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
37+ targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
38+
39+ - name : install dependencies (ubuntu only)
40+ if : matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
41+ run : |
42+ sudo apt-get update
43+ sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
44+ # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
45+ # You can remove the one that doesn't apply to your app to speed up the workflow a bit.
46+
47+ - name : install frontend dependencies
48+ run : bun install # change this to npm, pnpm or bun depending on which one you use.
49+
50+ - uses : tauri-apps/tauri-action@v0
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53+ with :
54+ tagName : __VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
55+ releaseName : ' quic-send __VERSION__'
56+ releaseBody : ' See the assets to download this version of quic send'
57+ releaseDraft : true
58+ prerelease : false
59+ args : ${{ matrix.args }}
0 commit comments