-
Notifications
You must be signed in to change notification settings - Fork 0
69 lines (61 loc) · 2 KB
/
Copy pathrelease.yml
File metadata and controls
69 lines (61 loc) · 2 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
68
69
name: Release
on:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
release:
name: Release ${{ matrix.name }} App
runs-on: ${{ matrix.platform }}
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- name: Windows x64
platform: windows-latest
rust-target: ""
args: --config src-tauri/tauri.release.conf.json
- name: macOS Apple Silicon
platform: macos-latest
rust-target: aarch64-apple-darwin
args: --target aarch64-apple-darwin --config src-tauri/tauri.release.conf.json
- name: macOS Intel
platform: macos-latest
rust-target: x86_64-apple-darwin
args: --target x86_64-apple-darwin --config src-tauri/tauri.release.conf.json
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust-target }}
- name: Cache Rust build output
uses: swatinem/rust-cache@v2
with:
workspaces: ./src-tauri -> target
- name: Install frontend dependencies
run: npm ci
- name: Build and publish release
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:
tagName: v__VERSION__
releaseName: Lightmark v__VERSION__
releaseBody: See the assets below to download and install this version of Lightmark.
releaseDraft: false
prerelease: false
generateReleaseNotes: true
updaterJsonPreferNsis: true
args: ${{ matrix.args }}