-
Notifications
You must be signed in to change notification settings - Fork 42
59 lines (46 loc) · 1.43 KB
/
app_windows.yml
File metadata and controls
59 lines (46 loc) · 1.43 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
name: 'app-windows'
on:
workflow_dispatch:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
permissions:
contents: write
jobs:
build-tauri:
runs-on: 'windows-latest'
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: lts/*
cache: 'npm'
- name: Write mah build config
shell: powershell
run: |
$data = @{ name = 'Mah'; mobile = true }
$data | ConvertTo-Json | Set-Content -Path custom-build-config.json
- name: Install mah dependencies
run: npm install
- name: Install tauri dependencies
run: cd resources/apps && npm install
- name: Build windows app
run: |
cd resources/apps
npm run windows
- name: Upload windows artifacts
uses: actions/upload-artifact@v4
if: github.ref_type != 'tag'
with:
name: 'windows'
retention-days: 10
path: resources/apps/tauri/target/x86_64-pc-windows-msvc/release/bundle/
- name: Upload release
uses: softprops/action-gh-release@v2
if: github.ref_type == 'tag'
with:
files: |
resources/apps/tauri/target/x86_64-pc-windows-msvc/release/bundle/**/*.msi
resources/apps/tauri/target/x86_64-pc-windows-msvc/release/bundle/**/*.exe