Skip to content

ci: fix cloudflare pages settings #16

ci: fix cloudflare pages settings

ci: fix cloudflare pages settings #16

Workflow file for this run

name: Desktop Build
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
jobs:
build-packages:
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install Linux dependencies for Tauri
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
curl \
file \
libayatana-appindicator3-dev \
libgtk-3-dev \
librsvg2-dev \
libsoup-3.0-dev \
libwebkit2gtk-4.1-dev \
libxdo-dev \
patchelf
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Typecheck
run: pnpm typecheck
- name: Build desktop app bundle
run: pnpm --filter @codelegate/desktop tauri build
- name: Upload Linux AppImage artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: desktop-appimage-linux
path: apps/desktop/src-tauri/target/release/bundle/appimage/*.AppImage
if-no-files-found: error
- name: Upload Linux DEB artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: desktop-deb-linux
path: apps/desktop/src-tauri/target/release/bundle/deb/*.deb
if-no-files-found: error
- name: Upload Linux RPM artifact
if: runner.os == 'Linux'
uses: actions/upload-artifact@v4
with:
name: desktop-rpm-linux
path: apps/desktop/src-tauri/target/release/bundle/rpm/*.rpm
if-no-files-found: error
- name: Upload macOS DMG artifact
if: runner.os == 'macOS'
uses: actions/upload-artifact@v4
with:
name: desktop-dmg-macos
path: apps/desktop/src-tauri/target/release/bundle/dmg/*.dmg
if-no-files-found: error