Skip to content

Commit 1588168

Browse files
committed
ci: build bundle
1 parent 1078934 commit 1588168

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed

.github/workflows/build_bundle.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: 'publish'
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v[0-9]+.[0-9]+.[0-9]+'
8+
9+
jobs:
10+
publish-tauri:
11+
permissions:
12+
contents: write
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- platform: 'macos-latest' # for Arm based macs (M1 and above).
18+
args: '--target aarch64-apple-darwin'
19+
- platform: 'macos-latest' # for Intel based macs.
20+
args: '--target x86_64-apple-darwin'
21+
22+
runs-on: ${{ matrix.platform }}
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: install Rust stable
27+
uses: dtolnay/rust-toolchain@stable
28+
with:
29+
# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.
30+
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
31+
32+
- name: Rust cache
33+
uses: swatinem/rust-cache@v2
34+
with:
35+
workspaces: './src-tauri -> target'
36+
37+
# - name: install frontend dependencies
38+
# # If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.
39+
# run: yarn install # change this to npm or pnpm depending on which one you use.
40+
41+
- uses: tauri-apps/tauri-action@v0
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
with:
45+
tagName: app-v__VERSION__ # the action automatically replaces \_\_VERSION\_\_ with the app version.
46+
releaseName: 'App v__VERSION__'
47+
releaseBody: 'See the assets to download this version and install.'
48+
releaseDraft: true
49+
prerelease: false
50+
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)