-
Notifications
You must be signed in to change notification settings - Fork 78
96 lines (87 loc) · 3.29 KB
/
release.yml
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
name: 'publish'
on:
push:
branches:
- release
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [macos-latest, fedora, windows-latest]
version: [18]
pnpm: [latest]
runs-on: ${{ matrix.platform }}
defaults:
run:
working-directory: ./apps/desktop
env:
NEXT_PUBLIC_TAURI: true
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Rust setup
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies (macOS only)
if: matrix.platform == 'macos-latest'
run: |
rustup target add aarch64-apple-darwin
rustup target add x86_64-apple-darwin
- uses: pnpm/[email protected]
with:
version: ${{ matrix.pnpm }}
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --prefer-offline --frozen-lockfile
- name: Build macOS App
if: matrix.platform == 'macos-latest'
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__-build # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'App v__VERSION__ build'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: --target universal-apple-darwin
- name: Build Linux AppImage
if: matrix.platform == 'fedora'
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__-build # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'App v__VERSION__ build'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
- name: Build Windows App
if: matrix.platform == 'windows-latest'
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAURI_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }}
TAURI_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
with:
tagName: v__VERSION__-build # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: 'App v__VERSION__ build'
releaseBody: 'See the assets to download this version and install.'
distPath: ./out
releaseDraft: true
prerelease: false