-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (50 loc) · 1.47 KB
/
Copy pathrelease.yml
File metadata and controls
59 lines (50 loc) · 1.47 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Release Build
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build-windows:
name: Build Windows
runs-on: windows-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build Tauri app
run: pnpm tauri build --bundles msi,nsis
- name: List build artifacts
run: |
echo "Listing all bundle directories:"
if (Test-Path "src-tauri\target\release\bundle") {
Get-ChildItem -Path "src-tauri\target\release\bundle" -Recurse -File | Select-Object FullName
} else {
echo "Bundle directory does not exist"
}
shell: pwsh
- name: Upload Release Assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: |
src-tauri/target/release/bundle/msi/*.msi
src-tauri/target/release/bundle/nsis/*-setup.exe
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}