Skip to content

Commit 2b87be5

Browse files
committed
chore: add pakcage tauri step
1 parent a2cfd11 commit 2b87be5

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/release.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,42 @@ jobs:
3636
static-site-env-prefix: VITE
3737
needs:
3838
- ci
39+
40+
package-tauri:
41+
runs-on: ${{ matrix.platform }}
42+
strategy:
43+
matrix:
44+
platform: [macos-latest, ubuntu-20.04, windows-latest]
45+
name: Package Tauri app
46+
47+
steps:
48+
- uses: actions/checkout@v4
49+
with:
50+
fetch-depth: 0
51+
52+
- name: setup node
53+
uses: actions/setup-node@v4
54+
with:
55+
node-version: 20
56+
57+
- name: install Rust stable
58+
uses: dtolnay/rust-toolchain@stable
59+
60+
- name: install dependencies (ubuntu only)
61+
if: matrix.platform == 'ubuntu-20.04'
62+
run: |
63+
sudo apt-get update
64+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf
65+
66+
- name: install app dependencies
67+
run: npm install
68+
69+
- uses: tauri-apps/tauri-action@v0
70+
env:
71+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72+
with:
73+
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
74+
releaseName: 'App v__VERSION__'
75+
releaseBody: 'See the assets to download this version and install.'
76+
releaseDraft: true
77+
prerelease: false

0 commit comments

Comments
 (0)