Skip to content

Commit 0fd7215

Browse files
committed
build: add multi-platform release workflow
1 parent 1c3c63d commit 0fd7215

2 files changed

Lines changed: 71 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Release Bundles
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
workflow_dispatch:
8+
inputs:
9+
release_tag:
10+
description: "Existing tag/release to upload assets to"
11+
required: true
12+
default: "v0.1.0"
13+
14+
permissions:
15+
contents: write
16+
17+
jobs:
18+
build:
19+
strategy:
20+
fail-fast: false
21+
matrix:
22+
include:
23+
- platform: ubuntu-22.04
24+
args: ""
25+
- platform: windows-latest
26+
args: ""
27+
- platform: macos-latest
28+
args: ""
29+
30+
runs-on: ${{ matrix.platform }}
31+
32+
steps:
33+
- name: Checkout repository
34+
uses: actions/checkout@v4
35+
with:
36+
ref: ${{ inputs.release_tag || github.ref_name }}
37+
38+
- name: Setup Node
39+
uses: actions/setup-node@v4
40+
with:
41+
node-version: 24
42+
cache: npm
43+
44+
- name: Install Rust stable
45+
uses: dtolnay/rust-toolchain@stable
46+
47+
- name: Install Linux system dependencies
48+
if: matrix.platform == 'ubuntu-22.04'
49+
run: |
50+
sudo apt-get update
51+
sudo apt-get install -y \
52+
libwebkit2gtk-4.1-dev \
53+
libappindicator3-dev \
54+
librsvg2-dev \
55+
patchelf
56+
57+
- name: Install frontend dependencies
58+
run: npm install
59+
60+
- name: Build and upload release assets
61+
uses: tauri-apps/tauri-action@v1
62+
env:
63+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
64+
with:
65+
tagName: ${{ inputs.release_tag || github.ref_name }}
66+
releaseName: "Skills Manager ${{ inputs.release_tag || github.ref_name }}"
67+
releaseDraft: false
68+
prerelease: false
69+
args: ${{ matrix.args }}

src-tauri/tauri.conf.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
3-
"productName": "Chops Core",
3+
"productName": "Skills Manager",
44
"version": "0.1.0",
55
"identifier": "com.hoppe.chopscore",
66
"build": {
@@ -12,7 +12,7 @@
1212
"app": {
1313
"windows": [
1414
{
15-
"title": "Chops Core",
15+
"title": "Skills Manager",
1616
"width": 1280,
1717
"height": 820,
1818
"minWidth": 1100,

0 commit comments

Comments
 (0)