Skip to content

feat: enhance Tauri build configuration, add updater artifact generat… #2

feat: enhance Tauri build configuration, add updater artifact generat…

feat: enhance Tauri build configuration, add updater artifact generat… #2

name: Tauri Release (All Platforms + Updater)
on:
workflow_dispatch:
inputs:
tag_name:
description: "Release tag (for example: v0.1.1)"
required: true
type: string
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
args: "--config src-tauri/tauri.release.conf.json"
- os: windows-latest
args: "--config src-tauri/tauri.release.conf.json"
- os: macos-latest
args: "--config src-tauri/tauri.release.conf.json"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libjavascriptcoregtk-4.1-dev \
libsoup-3.0-dev \
libgtk-3-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf \
rpm
if apt-cache show libfuse2t64 >/dev/null 2>&1; then
sudo apt-get install -y libfuse2t64
else
sudo apt-get install -y libfuse2
fi
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust
uses: swatinem/rust-cache@v2
with:
workspaces: |
src-tauri -> target
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build and publish signed bundles
uses: tauri-apps/tauri-action@v1
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.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}
releaseName: CommDesk ${{ github.event_name == 'workflow_dispatch' && inputs.tag_name || github.ref_name }}
releaseBody: See the assets to download and install this version.
releaseDraft: false
prerelease: false
uploadUpdaterJson: true
updaterJsonPreferNsis: false
uploadUpdaterSignatures: true
uploadWorkflowArtifacts: true
workflowArtifactNamePattern: "[platform]-[arch]-[bundle]"
args: ${{ matrix.args }}