Skip to content

Release

Release #3

Workflow file for this run

name: Release
on:
push:
tags: ['v*']
workflow_dispatch:
jobs:
release:
permissions:
contents: write
strategy:
fail-fast: false
# Windows omitted: the socket trigger (trigger.rs) is Unix-only, so the
# app doesn't compile there yet. Tracked as Phase 5 work.
matrix:
include:
- platform: macos-latest
args: --target aarch64-apple-darwin
- platform: macos-latest
args: --target x86_64-apple-darwin
- platform: ubuntu-22.04
args: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Install Linux system deps
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
libappindicator3-dev \
librsvg2-dev \
patchelf \
xdg-utils \
libgtk-3-dev \
libsoup-3.0-dev \
libjavascriptcoregtk-4.1-dev \
libxdo-dev \
libasound2-dev \
libssl-dev \
pkg-config
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: ./src-tauri -> target
- name: Install frontend deps
run: pnpm install --frozen-lockfile
# Draft release on a version tag (v1.2.3); manual runs collect into a
# reusable "nightly" draft. Publish the draft by hand after checking it.
- uses: tauri-apps/tauri-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tagName: ${{ github.ref_type == 'tag' && github.ref_name || 'nightly' }}
releaseName: ${{ github.ref_type == 'tag' && github.ref_name || 'nightly' }}
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}