chore: updated master build workflow
mellbacon committed
May 30, 2023 at 16:09 UTC
43c7f0bfee8cce044a0a090220b6f45d8f9f472c
1 file changed
+34
-23
.github/workflows/main.yml
+34
-23
@@ -1,34 +1,45 @@
1
-name: "test-on-pr"
2
-on:
1
+name: "Test Build (master)"
2
+on:
3
push:
4
branches:
5
- master
6
7
jobs:
8
- test-tauri:
8
+ publish-tauri:
9
strategy:
10
fail-fast: false
11
matrix:
12
- platform: [macos-latest, ubuntu-20.04, windows-latest]
12
+ platform: [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 }}
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v3
18
+
19
+ - name: Rust setup
20
+ uses: dtolnay/rust-toolchain@stable
21
+
22
+ - name: Rust cache
23
+ uses: swatinem/rust-cache@v2
24
+ with:
25
+ workspaces: './src-tauri -> target'
26
+
27
+ - name: setup node
28
+ uses: actions/setup-node@v3
29
+ with:
30
+ node-version: 'lts/*'
31
+ cache: 'yarn'
32
+
33
+ - name: Install frontend dependencies
34
+ run: yarn install
35
+
36
+ - name: Build the app
37
+ uses: tauri-apps/tauri-action@v0
38
+ env:
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+ with:
41
+ tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
42
+ releaseName: "App v__VERSION__-TEST-BUILD"
43
+ releaseBody: "See the assets to download this version and install."
44
+ releaseDraft: true
45
+ prerelease: true