Skip to content
This repository was archived by the owner on Jul 8, 2026. It is now read-only.

refactor: migrate from Electron to Pake for improved performance and … #54

refactor: migrate from Electron to Pake for improved performance and …

refactor: migrate from Electron to Pake for improved performance and … #54

Workflow file for this run

name: Build & Package (Pake)

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

(Line: 6, Col: 3): Unexpected value 'tags', (Line: 7, Col: 5): A sequence was not expected
on:
push:
branches: [ main ]
tags:
- 'v*.*.*'
permissions:
contents: write
jobs:
build:
name: Build (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Install dependencies
run: npm install
- name: Build CM bundle
run: npm run build:cm
- name: Run tests
run: npm test
- name: Build with Pake (Windows)
if: matrix.os == 'windows-latest'
run: npm run build:win
- name: Build with Pake (macOS)
if: matrix.os == 'macos-latest'
run: npm run build:mac
- name: Upload to GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'latest-build' }}
name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'Latest Build' }}
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
files: |
*.exe
*.dmg
*.app.zip
dist/*.exe
dist/*.dmg
body: ${{ github.event.head_commit.message }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}