Skip to content

feat: update tsconfig with new asset components and add build configu… #1

feat: update tsconfig with new asset components and add build configu…

feat: update tsconfig with new asset components and add build configu… #1

Workflow file for this run

name: Build Windows
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
cache-dependency-path: stack-desktop/package-lock.json
- name: Install Rust stable
uses: dtolnay/rust-toolchain@stable
- name: Cache Rust build
uses: Swatinem/rust-cache@v2
with:
workspaces: stack-desktop/src-tauri -> target
- name: Install frontend dependencies
working-directory: stack-desktop
run: npm install
- name: Build Tauri app
uses: tauri-apps/tauri-action@v0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
projectPath: stack-desktop
- name: Upload installer artifacts
uses: actions/upload-artifact@v4
with:
name: stack-windows-${{ github.sha }}
path: |
stack-desktop/src-tauri/target/release/bundle/msi/*.msi
stack-desktop/src-tauri/target/release/bundle/nsis/*.exe
if-no-files-found: warn
retention-days: 14