Skip to content

Bundle plugin as Tauri resources + tray-blur auto-hide + startup logging #11

Bundle plugin as Tauri resources + tray-blur auto-hide + startup logging

Bundle plugin as Tauri resources + tray-blur auto-hide + startup logging #11

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
# Required so the default GITHUB_TOKEN can create the GitHub Release that
# tauri-action uploads artifacts to.
permissions:
contents: write
jobs:
release:
name: Build ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest'
args: '--target universal-apple-darwin'
- platform: 'ubuntu-22.04'
args: ''
- platform: 'windows-latest'
args: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
- name: Cache Cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: 'desktop/src-tauri -> target'
- name: Install Linux dependencies
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
- name: Install npm dependencies
run: npm ci
- name: Build Obsidian plugin
run: npm run build:plugin
- name: Build & release Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: ./desktop
tagName: ${{ github.ref_name }}
releaseName: 'InterBrain ${{ github.ref_name }}'
releaseBody: |
Pre-release Tauri companion build for cross-platform install testing.
Not code-signed; expect OS warnings on first launch.
Internal use — not yet a public release.
# Publish as a prerelease (not "Latest") so assets are immediately
# public-downloadable. Drafts hide assets behind repo collab auth,
# which we don't want for cross-machine install testing.
releaseDraft: false
prerelease: true
args: ${{ matrix.args }}
includeUpdaterJson: false