Skip to content

Commit 3f951c8

Browse files
committed
ci: add standalone release step
1 parent 7364b81 commit 3f951c8

1 file changed

Lines changed: 52 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release Standalone
2+
3+
on:
4+
push:
5+
tags:
6+
- "standalone/*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build:
13+
name: Build (${{ matrix.os }})
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
fail-fast: false
17+
matrix:
18+
os: [macos-latest, ubuntu-latest, windows-latest]
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup Bun
23+
uses: oven-sh/setup-bun@v1
24+
with:
25+
bun-version: "latest"
26+
27+
- name: Setup Rust
28+
uses: dtolnay/rust-toolchain@stable
29+
30+
- name: Install Linux dependencies
31+
if: matrix.os == 'ubuntu-latest'
32+
run: |
33+
sudo apt-get update
34+
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libayatana-appindicator3-dev librsvg2-dev
35+
36+
- name: Install frontend dependencies
37+
run: bun install
38+
working-directory: standalone
39+
40+
- name: Extract release version
41+
run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#standalone/}" >> "$GITHUB_ENV"
42+
43+
- name: Build and release
44+
uses: tauri-apps/tauri-action@v0
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
with:
48+
projectPath: standalone
49+
tagName: ${{ github.ref_name }}
50+
releaseName: Standalone ${{ env.RELEASE_VERSION }}
51+
releaseBody: Automated release for ${{ env.RELEASE_VERSION }}
52+
includeDebug: false

0 commit comments

Comments
 (0)