92
92
tag : ${{ github.ref }}
93
93
prerelease : ${{ !startsWith(github.ref, 'refs/tags/') }}
94
94
overwrite : true
95
+
96
+ publish-tauri :
97
+ permissions :
98
+ contents : write
99
+ strategy :
100
+ fail-fast : false
101
+ matrix :
102
+ include :
103
+ - platform : ' macos-latest' # for Arm based macs (M1 and above).
104
+ args : ' --target aarch64-apple-darwin'
105
+ - platform : ' macos-latest' # for Intel based macs.
106
+ args : ' --target x86_64-apple-darwin'
107
+ - platform : ' ubuntu-22.04' # for Tauri v1 you could replace this with ubuntu-20.04.
108
+ args : ' '
109
+ - platform : ' windows-latest'
110
+ args : ' '
111
+
112
+ runs-on : ${{ matrix.platform }}
113
+ steps :
114
+ - uses : actions/checkout@v4
115
+
116
+ - name : install dependencies (ubuntu only)
117
+ if : matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
118
+ run : |
119
+ sudo apt-get update
120
+ sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
121
+ # webkitgtk 4.0 is for Tauri v1 - webkitgtk 4.1 is for Tauri v2.
122
+ # You can remove the one that doesn't apply to your app to speed up the workflow a bit.
123
+
124
+ - name : setup node
125
+ uses : actions/setup-node@v4
126
+ with :
127
+ node-version : lts/*
128
+
129
+ - name : 🥟 Setup Bun
130
+ uses : oven-sh/setup-bun@v1
131
+ with :
132
+ bun-version : latest
133
+
134
+ - name : install Rust stable
135
+ uses : dtolnay/rust-toolchain@stable
136
+ with :
137
+ # Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
138
+ targets : ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
139
+
140
+ - name : Rust cache
141
+ uses : swatinem/rust-cache@v2
142
+ with :
143
+ workspaces : ' ./src-tauri -> target'
144
+
145
+ - name : 📦 Install dependencies
146
+ run : |
147
+ cd ping-viewer-next-desktop
148
+ bun install
149
+
150
+ -
uses :
tauri-apps/[email protected]
151
+ env :
152
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
153
+ with :
154
+ projectPath : ' ./ping-viewer-next-desktop'
155
+ tagName : app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
156
+ releaseName : ' App v__VERSION__'
157
+ releaseBody : ' See the assets to download this version and install.'
158
+ releaseDraft : true
159
+ prerelease : false
160
+ args : ${{ matrix.args }}
0 commit comments