-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (61 loc) · 2.34 KB
/
Copy pathrelease.yml
File metadata and controls
68 lines (61 loc) · 2.34 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
name: Release
# Build and publish a GitHub Release with installers for macOS, Linux and
# Windows whenever a version tag (e.g. v0.1.0a) is pushed.
on:
push:
tags:
- 'v*'
- '[0-9]*'
permissions:
contents: write
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest # Apple Silicon (arm64)
- os: ubuntu-22.04 # Linux x86_64
- os: windows-latest # Windows x86_64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install Linux dependencies
if: matrix.os == '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 libxdo-dev \
build-essential file libssl-dev
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: src-tauri
- run: pnpm install --frozen-lockfile
# tauri-action runs beforeBuildCommand (pnpm build), bundles the app and
# uploads the installers to a release named after the tag. The engine is
# no longer bundled — the app drives the system-installed `jucode` CLI.
#
# Auto-update: with TAURI_SIGNING_PRIVATE_KEY set (repo secret) and
# bundle.createUpdaterArtifacts enabled in tauri.conf.json, tauri-action
# additionally signs the updater bundles (.sig files) and generates +
# uploads latest.json, which installed clients poll via the endpoint in
# plugins.updater. Key generation & setup: see docs/updater.md.
- 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: ${{ github.ref_name }}
releaseName: ${{ github.ref_name }}
releaseDraft: false
prerelease: true
releaseBody: |
Automated build. macOS builds are unsigned — on first launch use
right-click → Open, or run `xattr -cr /Applications/JuCode.app`.