Skip to content

Commit 0a6f995

Browse files
authored
Add Taui Action
1 parent 2987035 commit 0a6f995

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)