-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (56 loc) · 1.83 KB
/
Copy pathbuild.yml
File metadata and controls
67 lines (56 loc) · 1.83 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
60
61
62
63
64
65
66
67
name: Build
on:
push:
branches: [main]
tags: ["v*"]
pull_request:
branches: [main]
permissions:
contents: write
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: windows-latest
target: x86_64-pc-windows-msvc
- platform: macos-latest
target: aarch64-apple-darwin
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: latest
- uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Install dependencies
run: pnpm install
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
args: --target ${{ matrix.target }}
tagName: ${{ github.ref_type == 'tag' && github.ref_name || '' }}
releaseName: ${{ github.ref_type == 'tag' && github.ref_name || '' }}
releaseBody: "Download the installer for your platform below."
releaseDraft: false
prerelease: false
updaterJsonPreferNsis: true
- name: Upload artifacts
if: github.ref_type != 'tag'
uses: actions/upload-artifact@v4
with:
name: QueryLoL-${{ matrix.platform == 'windows-latest' && 'windows' || 'macos' }}
path: |
src-tauri/target/${{ matrix.target }}/release/bundle/nsis/*.exe
src-tauri/target/${{ matrix.target }}/release/bundle/dmg/*.dmg