-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (57 loc) · 2.45 KB
/
Copy pathrelease.yml
File metadata and controls
66 lines (57 loc) · 2.45 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
name: Release builds
# Builds native installers for every platform and attaches them to the GitHub
# Release. Triggers on a version tag (v*), or manually against an existing tag.
on:
push:
tags: ['v*']
workflow_dispatch:
inputs:
tag:
description: 'Existing tag to build and attach installers to (e.g. v0.1.0)'
required: true
permissions:
contents: write
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
# One universal Mac dmg (Intel + Apple Silicon) built on the ARM runner —
# avoids the scarce/stall-prone macos-13 Intel runner entirely.
- { platform: macos-latest, target: 'aarch64-apple-darwin,x86_64-apple-darwin', args: '--target universal-apple-darwin --bundles dmg' }
- { platform: ubuntu-22.04, target: '', args: '--bundles deb,appimage' } # Linux
- { platform: windows-latest, target: '', args: '--bundles nsis' } # Windows
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install Linux build deps
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libgtk-3-dev libayatana-appindicator3-dev librsvg2-dev patchelf
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- run: npm ci
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Signs the updater artifacts so the app trusts the new build. Set these
# repo secrets before tagging a release (see CONTRIBUTING / release notes).
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY_PASSWORD }}
with:
tagName: ${{ github.event.inputs.tag || github.ref_name }}
releaseName: 'Desk Rave ${{ github.event.inputs.tag || github.ref_name }}'
releaseDraft: false
prerelease: false
# emits + uploads latest.json (the updater manifest) to the release
includeUpdaterJson: true
args: ${{ matrix.args }}