1- name : ' publish'
1+ name : publish
22
33on :
44 push :
@@ -14,11 +14,11 @@ jobs:
1414 matrix :
1515 include :
1616 # Apple Silicon (M1/M2/M3)
17- - runner : ' macos-14'
18- target : ' aarch64-apple-darwin'
17+ - runner : macos-14
18+ target : aarch64-apple-darwin
1919 # Intel macOS
20- - runner : ' macos-13'
21- target : ' x86_64-apple-darwin'
20+ - runner : macos-13
21+ target : x86_64-apple-darwin
2222
2323 runs-on : ${{ matrix.runner }}
2424
@@ -35,23 +35,25 @@ jobs:
3535 with :
3636 workspaces : ' ./src-tauri -> target'
3737
38- - name : Install trunk & wasm-bindgen-cli (for Leptos WASM build )
38+ - name : Install trunk, wasm-bindgen-cli, and Tauri CLI (v2 )
3939 run : |
4040 cargo install trunk --locked || true
4141 cargo install wasm-bindgen-cli --locked || true
42+ cargo install tauri-cli --locked --version ^2 || true
43+ cargo --list | grep -E '^ tauri\b' || (echo "cargo tauri not installed" && exit 1)
4244
4345 - name : Build Leptos frontend (WASM) with trunk
44- # Adjust the working-directory if your index.html/Cargo.toml live elsewhere.
46+ # If your index.html/Cargo.toml live elsewhere, set working-directory accordingly .
4547 working-directory : .
4648 run : trunk build --release
4749
48- - name : Bundle app with Tauri (v2)
50+ - name : Bundle app with Tauri (v2, Rust-only )
4951 uses : tauri-apps/tauri-action@v0
5052 env :
5153 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
5254 with :
53- # Force using Rust CLI instead of any Node tooling .
54- tauriScript : cargo tauri build
55+ # IMPORTANT: do not include "build" here — the action appends it .
56+ tauriScript : cargo tauri
5557 args : --target ${{ matrix.target }}
5658 tagName : app-v__VERSION__
5759 releaseName : ' App v__VERSION__'
0 commit comments