1
+ name : Release
1
2
on :
2
- release :
3
- types : [created]
3
+ push :
4
+ tags :
5
+ - ' v*'
6
+ workflow_dispatch :
4
7
5
8
jobs :
6
9
release :
7
- name : release ${{ matrix.target }}
8
- runs-on : ubuntu-latest
9
10
strategy :
10
11
fail-fast : false
11
12
matrix :
12
- target : [x86_64-pc-windows-gnu, x86_64-unknown-linux-musl, x86_64-apple-darwin]
13
+ platform : [macos-latest, ubuntu-20.04, windows-latest]
14
+ runs-on : ${{ matrix.platform }}
13
15
steps :
14
- - uses : actions/checkout@master
15
- - name : Compile and release
16
- uses : rust-build/rust-build.action@v1.3.2
16
+ - name : Checkout repository
17
+ uses : actions/checkout@v3
18
+
19
+ - name : Install dependencies (ubuntu only)
20
+ if : matrix.platform == 'ubuntu-20.04'
21
+ # You can remove libayatana-appindicator3-dev if you don't use the system tray feature.
22
+ run : |
23
+ sudo apt-get update
24
+ sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev
25
+
26
+ - name : Rust setup
27
+ uses : dtolnay/rust-toolchain@stable
28
+
29
+ - name : Rust cache
30
+ uses : swatinem/rust-cache@v2
31
+ with :
32
+ workspaces : ' ./src-tauri -> target'
33
+
34
+ - name : Sync node version and setup cache
35
+ uses : actions/setup-node@v3
36
+ with :
37
+ node-version : ' lts/*'
38
+ cache : ' yarn' # Set this to npm, yarn or pnpm.
39
+
40
+ - name : Install app dependencies and build web
41
+ # Remove `&& yarn build` if you build your frontend in `beforeBuildCommand`
42
+ run : yarn && yarn build # Change this to npm, yarn or pnpm.
43
+
44
+ - name : Build the app
45
+ uses : tauri-apps/tauri-action@v0
46
+
17
47
env :
18
48
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
19
49
with :
20
- RUSTTARGET : ${{ matrix.target }}
21
- EXTRA_FILES : " README.md"
22
- TOOLCHAIN_VERSION : 1.64.0
50
+ tagName : ${{ github.ref_name }} # This only works if your workflow triggers on new tags.
51
+ releaseName : ' OResults connector v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.
52
+ releaseBody : ' See the assets to download and install this version.'
53
+ releaseDraft : true
54
+ prerelease : false
0 commit comments