Skip to content

fix: correct frontendDist path from ../build to ../dist #2

fix: correct frontendDist path from ../build to ../dist

fix: correct frontendDist path from ../build to ../dist #2

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- platform: 'macos-latest'
args: '--target aarch64-apple-darwin'
rust_target: 'aarch64-apple-darwin'
- platform: 'macos-15-intel'
args: '--target x86_64-apple-darwin'
rust_target: 'x86_64-apple-darwin'
- platform: 'ubuntu-22.04'
args: ''
rust_target: ''
- platform: 'windows-latest'
args: ''
rust_target: ''
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v6
- name: Install system dependencies (Linux)
if: matrix.platform == 'ubuntu-22.04'
run: |
sudo apt-get update
sudo apt-get install -y \
libwebkit2gtk-4.1-dev \
build-essential \
curl \
wget \
file \
libxdo-dev \
libssl-dev \
libayatana-appindicator3-dev \
librsvg2-dev \
patchelf
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.rust_target }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: "src-tauri -> target"
save-if: ${{ github.ref_type == 'tag' }}
- uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
args: ${{ matrix.args }}
tauriScript: bunx tauri
- name: Create portable archive (macOS)
if: runner.os == 'macOS'
run: |
cd src-tauri/target/${{ matrix.rust_target }}/release/bundle/macos
tar -czf trunk-macos-${{ matrix.rust_target }}.tar.gz *.app
- name: Create portable archive (Linux)
if: runner.os == 'Linux'
run: |
cd src-tauri/target/release/bundle/appimage
tar -czf trunk-linux-x86_64.tar.gz *.AppImage
- name: Create portable archive (Windows)
if: runner.os == 'Windows'
shell: bash
run: |
cd src-tauri/target/release
tar -czf trunk-windows-x86_64.tar.gz trunk.exe
- uses: actions/upload-artifact@v4
with:
name: trunk-${{ matrix.platform }}-${{ matrix.rust_target || 'x64' }}
path: |
src-tauri/target/**/release/bundle/**/*.dmg
src-tauri/target/**/release/bundle/appimage/*.AppImage
src-tauri/target/**/release/bundle/**/*.msi
src-tauri/target/**/release/bundle/**/*.tar.gz
src-tauri/target/**/release/*.tar.gz
if-no-files-found: error