Skip to content

迁移项目到 Vite #281

迁移项目到 Vite

迁移项目到 Vite #281

name: Build CI For Electron
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
matrix:
os-version: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os-version }}
steps:
- uses: actions/checkout@v4
- name: 设置 Node.js
uses: actions/setup-node@v4
with:
node-version: '22.x'
cache: 'npm'
- name: 安装依赖
run: npm i
- name: 构建 Electron
run: npm run build:electron
- name: 上传构建文件
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os-version }}
path: ./dist/electron/轻书架*