@setoelkahfi / svara / commits / 14a0147

Create publish.yml

mellobacon committed Dec 1, 2022 at 16:40 UTC 14a01473b85d894a240950a7aa9b5ddd1c0e81f8
1 file changed +40
.github/workflows/publish.yml new
+40
@@ -0,0 +1,40 @@
1 +name: "publish"
2 +on:
3 + push:
4 + branches:
5 + - release
6 +
7 +jobs:
8 + publish-tauri:
9 + strategy:
10 + fail-fast: false
11 + matrix:
12 + platform: [macos-latest, ubuntu-20.04, windows-latest]
13 +
14 + runs-on: ${{ matrix.platform }}
15 + steps:
16 + - uses: actions/checkout@v2
17 + - name: setup node
18 + uses: actions/setup-node@v1
19 + with:
20 + node-version: '>=18.x'
21 + - name: install Rust stable
22 + uses: actions-rs/toolchain@v1
23 + with:
24 + 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 webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
30 + - name: install app dependencies and build it
31 + run: yarn && yarn build
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