迁移项目到 Vite #281
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/轻书架* |