-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (41 loc) · 1.41 KB
/
build-pkg.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
name: "build pkg"
on:
push:
-branches:
- release
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
platform: [ windows-latest ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: 20
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: install frontend dependencies
run: |
npm install -g pnpm
pnpm install --frozen-lockfile
- name: configure macOS build
if: matrix.platform == 'macos-latest'
run: |
# Ensure that we have the aarch64 toolchain available for cross-compilation
rustup target add aarch64-apple-darwin
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: ${{ matrix.platform == 'macos-latest' && '--target universal-apple-darwin' || '' }}
tagName: v__VERSION__-dev.${{ github.run_number }} # the action automatically replaces \_\_VERSION\_\_ with the app version
releaseName: "Development Build v__VERSION__-dev.${{ github.run_number }}"
releaseBody: "This is a development release from the master branch (Commit ${{ github.sha }})."
releaseDraft: false
prerelease: true