-
Notifications
You must be signed in to change notification settings - Fork 15
41 lines (39 loc) · 1.26 KB
/
build-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: "Windows"
on:
push:
branches: ["3.X.X"]
workflow_dispatch:
jobs:
test-tauri:
strategy:
fail-fast: false
matrix:
platform: [windows-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "npm"
- name: Install Rust Stable
uses: dtolnay/rust-toolchain@stable
- name: Install Frontend Dependencies
run: npm install # change this to npm or pnpm depending on which one you use
- name: Build Application
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: __VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "v__VERSION__"
releaseBody: "See the assets to download this version and install. Replace AppImage with one uploaded in artifact"
releaseDraft: true
prerelease: false
- name: Upload Portable Executable
uses: actions/upload-artifact@v4
with:
name: Chrultrabook-Tools
retention-days: 5
path: src-tauri/target/release/chrultrabook*.exe