Skip to content

Build and Publish

Build and Publish #97

Workflow file for this run

name: 'Build and Publish'
on:
workflow_dispatch:
push:
tags:
- 'release-v*'
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-15'
args: '--target aarch64-apple-darwin'
- platform: 'macos-15'
args: '--target x86_64-apple-darwin'
- platform: 'ubuntu-22.04'
args: ''
- platform: 'windows-latest'
args: ''
- platform: 'windows-latest'
args: '--target aarch64-pc-windows-msvc'
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v5
- name: install dependencies (ubuntu only)
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: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: setup node
uses: actions/setup-node@v4
with:
node-version: latest
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || matrix.args == '--target aarch64-pc-windows-msvc' && 'aarch64-pc-windows-msvc' || '' }}
- name: Rust cache
uses: swatinem/rust-cache@v2
with:
workspaces: './src-tauri -> target'
- name: install frontend dependencies
run: bun install --frozen-lockfile
- name: Build and release
uses: tauri-apps/tauri-action@v0
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 }}
PUBLIC_SUPABASE_API_KEY: ${{ secrets.PUBLIC_SUPABASE_API_KEY }}
PUBLIC_SUPABASE_ENDPOINT: ${{ secrets.PUBLIC_SUPABASE_ENDPOINT }}
PUBLIC_NOTA_ARTIFACT_URL: ${{ vars.PUBLIC_NOTA_ARTIFACT_URL }}
PUBLIC_NOTA_FRONTEND_URL: ${{ vars.PUBLIC_NOTA_FRONTEND_URL }}
with:
tagName: release-v__VERSION__
releaseName: 'Nota v__VERSION__'
releaseBody: 'See the assets to download this version and install.'
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
includeUpdaterJson: true