File tree Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Expand file tree Collapse file tree 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : ' publish'
2
+
3
+ # This will trigger the action on each push to the `release` branch.
4
+ on :
5
+ push :
6
+ branches :
7
+ - release
8
+
9
+ jobs :
10
+ publish-tauri :
11
+ permissions :
12
+ contents : write
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ platform : [macos-latest, ubuntu-20.04, windows-latest]
17
+
18
+ runs-on : ${{ matrix.platform }}
19
+ steps :
20
+ - uses : actions/checkout@v4
21
+
22
+ - name : setup node
23
+ uses : actions/setup-node@v4
24
+ with :
25
+ node-version : 20
26
+
27
+ - name : install Rust stable
28
+ uses : dtolnay/rust-toolchain@stable
29
+
30
+ - name : install dependencies (ubuntu only)
31
+ if : matrix.platform == 'ubuntu-20.04'
32
+ run : |
33
+ sudo apt-get update
34
+ sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
35
+
36
+ - name : install frontend dependencies
37
+ run : npm install # change this to npm or pnpm depending on which one you use
38
+
39
+ - uses : tauri-apps/tauri-action@v0
40
+ env :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ with :
43
+ tagName : app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
44
+ releaseName : ' App v__VERSION__'
45
+ releaseBody : ' See the assets to download this version and install.'
46
+ releaseDraft : true
47
+ prerelease : false
You can’t perform that action at this time.
0 commit comments