Skip to content

v0.1.1

v0.1.1 #4

name: 'publish'
on:
release:
types: [published]
# This workflow will build and publish the app on every release.
jobs:
publish-tauri:
permissions:
contents: write
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest' # for Arm based macs (M1 and above).
args: '--target aarch64-apple-darwin'
rust_targets: 'aarch64-apple-darwin'
- platform: 'macos-latest' # for Intel based macs.
args: '--target x86_64-apple-darwin'
rust_targets: 'x86_64-apple-darwin'
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: install pnpm
run: npm install -g pnpm
- name: install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: add Rust targets
run: rustup target add ${{ matrix.rust_targets }}
- name: install frontend dependencies
run: cd apps/desktop && pnpm install
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_CERTIFICATE: ${{ secrets.APPLE_CERTIFICATE }}
APPLE_CERTIFICATE_PASSWORD: ${{ secrets.APPLE_CERTIFICATE_PASSWORD }}
APPLE_SIGNING_IDENTITY: ${{ secrets.APPLE_SIGNING_IDENTITY }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
with:
projectPath: apps/desktop
tagName: ${{ github.event.release.tag_name }}
releaseName: ${{ github.event.release.name }}
releaseBody: ${{ github.event.release.body }}
releaseDraft: false
prerelease: ${{ github.event.release.prerelease }}
args: ${{ matrix.args }}