9
9
publish-tauri :
10
10
permissions :
11
11
contents : write
12
- strategy :
13
- fail-fast : false
14
- matrix :
15
- include :
16
- - platform : ' macos-latest' # for Arm based macs (M1 and above).
17
- args : ' --target aarch64-apple-darwin'
18
- - platform : ' macos-latest' # for Intel based macs.
19
- args : ' --target x86_64-apple-darwin'
20
- - platform : ' ubuntu-20.04'
21
- args : ' '
22
- - platform : ' windows-latest'
23
- args : ' '
24
12
25
- runs-on : ${{ matrix.platform }}
13
+ runs-on : windows-latest
14
+
26
15
steps :
27
16
- uses : actions/checkout@v4
28
17
29
- - name : install dependencies (ubuntu only)
30
- if : matrix.platform == 'ubuntu-20.04' # This must match the platform value defined above.
31
- run : |
32
- sudo apt-get update
33
- sudo apt-get install -y libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
34
-
35
18
- name : setup node
36
19
uses : actions/setup-node@v4
37
20
with :
@@ -40,26 +23,22 @@ jobs:
40
23
41
24
- name : install Rust stable
42
25
uses : dtolnay/rust-toolchain@stable
43
- with :
44
- # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
45
- targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
46
26
47
27
- name : Rust cache
48
28
uses : swatinem/rust-cache@v2
49
29
with :
50
30
workspaces : ' ./src-tauri -> target'
51
31
52
32
- name : install frontend dependencies
53
- # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
54
33
run : npm install # change this to npm or pnpm depending on which one you use.
55
34
56
35
- uses : tauri-apps/tauri-action@v0
57
36
env :
58
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59
38
with :
60
- tagName : app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
39
+ tagName : app-v__VERSION__ # the action automatically replaces __VERSION__ with the app version.
61
40
releaseName : ' App v__VERSION__'
62
41
releaseBody : ' See the assets to download this version and install.'
63
42
releaseDraft : true
64
43
prerelease : false
65
- args : ${{ matrix.args }}
44
+ args : ' '
0 commit comments